[issue16364] datetime.strftime and locale.getdefaultlocale conflict on Windows ?

2012-10-30 Thread jamesf
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

[issue16364] datetime.strftime and locale.getdefaultlocale conflict on Windows ?

2012-10-30 Thread jamesf
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

[issue16186] shlex bug?

2012-10-10 Thread jamesf
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

[issue16186] shlex bug?

2012-10-10 Thread jamesf
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(

[issue14708] distutils's checking for MSVC compiler

2012-05-03 Thread jamesf
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

[issue14708] distutils's checking for MSVC compiler

2012-05-02 Thread jamesf
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