This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jwfang
Recipients jwfang
Date 2012-10-30.12:10:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351599057.52.0.790355581015.issue16364@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-10-30 12:10:57jwfangsetrecipients: + jwfang
2012-10-30 12:10:57jwfangsetmessageid: <1351599057.52.0.790355581015.issue16364@psf.upfronthosting.co.za>
2012-10-30 12:10:57jwfanglinkissue16364 messages
2012-10-30 12:10:57jwfangcreate