Message174203
on windows(windows 7), python 2.7.3 compiled with VS 2008 and code page "cp936".
locale.getdefaultlocale call Win32 API GetACP and return "cp936",
but a small test program return "C" from 'getlocale' CRT function.
I am not sure if this behaviour is expected or bug?
It seems that datetime.strftime call the CRT function strftime to
do the real work, since the CRT locale is C, it use that to format
locale dependent directive like "%B" and "%x";
But since locale.getdefaultlocale return "cp936", so i expect
datetime.strftime to return locale formatted string. |
|
Date |
User |
Action |
Args |
2012-10-30 12:10:57 | jwfang | set | recipients:
+ jwfang |
2012-10-30 12:10:57 | jwfang | set | messageid: <1351599057.52.0.790355581015.issue16364@psf.upfronthosting.co.za> |
2012-10-30 12:10:57 | jwfang | link | issue16364 messages |
2012-10-30 12:10:57 | jwfang | create | |
|