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
___
Pyt
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 s
jamesf added the comment:
but if i did this, it works again:
In [121]: test_ws(" 'h' w") # prepend a whitespace at the beginning
[" 'h' w"]
--
___
Python tra
New submission from jamesf:
In [112]: def test_ws(s):
.: sl = shlex.shlex(s)
.: sl.whitespace = "|"
.: sl.whitespace_split = True
.: print list(sl)
In [114]: test_ws("h w") # works fine
['h w']
In [115]: test_ws(
jamesf <54740...@qq.com> added the comment:
Thanks for your replying.
Here is my understanding of how the compiler chosen logic works, correct me if
i am wrong:
1) If using MSVC, we should ALWAYS stick the compiler to the version which
python was compiled with;
2) But we can chan
New submission from jamesf <54740...@qq.com>:
I am using python 2.7.2 installed via the pre-built installer package, and my
SDK version is v7.1.
1) The MSSdk environment variable is not set by lastest SDK's SetEnv.cmd
anymore, but distutils still check for it.
2) I have also i