[issue35469] [2.7] time.asctime() regression

2018-12-21 Thread Antti Haapala
Antti Haapala added the comment: C11 specifies the format used by asctime as being exactly "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n", which matches the *new* output with space padding, less the newline. As always, Microsoft got it wrong: https://docs.microsoft.com/en-us/cpp/c-runtime-library/

[issue35469] [2.7] time.asctime() regression

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: The change is deliberate and is not a bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35469] [2.7] time.asctime() regression

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: Even if behavior changes in minor Python release are not welcome, IMHO this one was justified and worth it. asctime() has a crappy API: it returns a pointer to a static buffer somewhere in the libc. asctime_r() is better, but it has an undefined behavior for

[issue35469] [2.7] time.asctime() regression

2018-12-12 Thread STINNER Victor
New submission from STINNER Victor : It seems like bpo-31339 introduced a regression with commit eeadf5fc231163ec97a8010754d9c995c7c14876 to fix a security issue. Copy of of bencordova's comment from GitHub: https://github.com/python/cpython/pull/3293#issuecomment-446378058 I'm new at comment