jamesf added the comment:
i just found that locale.getlocale does return (None, None),
maybe defaultlocale just return the DEFAULT, which is the hints.
i will use locale.setlocale in my app, so close this issue.
--
status: open -> closed
___
Python t
New submission from jamesf:
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?
I