Message173798
>I see in 3.3 PyUnicode_DecodeFSDefaultAndSize() was replaced
> by PyUnicode_DecodeLocale().
Related changes:
- 8620e6901e58 for the issue #5905
- 279b0aee0cfb for the issue #13560
I wrote 8620e6901e58 for Linux, when the wcsftime() function is missing.
The problem is the changeset 279b0aee0cfb: it introduces a regression on Windows. It looks like PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefault() use a different encoding on Windows.
I suppose that we need to add an #ifdef MS_WINDOWS to use PyUnicode_DecodeFSDefault() on Windows, and PyUnicode_DecodeFSDefault() on Linux.
See also the issue #10653: time.strftime() uses strftime() (bytes) instead of wcsftime() (unicode) on Windows, because wcsftime() and tzname format the timezone differently. |
|
Date |
User |
Action |
Args |
2012-10-25 20:30:20 | vstinner | set | recipients:
+ vstinner, amaury.forgeotdarc, belopolsky, serhiy.storchaka, msmhrt |
2012-10-25 20:30:20 | vstinner | set | messageid: <1351197020.2.0.858120322209.issue16322@psf.upfronthosting.co.za> |
2012-10-25 20:30:20 | vstinner | link | issue16322 messages |
2012-10-25 20:30:19 | vstinner | create | |
|