[issue10187] exec encode unicode to utf-8 str automatically in GBK environment

2010-10-24 Thread wjm251
wjm251 added the comment: Got that , thank you -- ___ Python tracker <http://bugs.python.org/issue10187> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10187] exec encode unicode to utf-8 str automatically in GBK environment

2010-10-24 Thread wjm251
wjm251 added the comment: oh,you mentioned the PEP 263 but I already set a header like this,you can see the attached test.py #coding=GBK why exec choose to use utf-8 not GBK? GBK is a valid Chinese character set in python26 -- ___ Python tracker

[issue10187] exec encode unicode to utf-8 str automatically in GBK environment

2010-10-23 Thread wjm251
wjm251 added the comment: but why it is forced to encoded to utf-8, I think it should be encoded by the locale related encodings,not always utf-8, for example,in GBK locale,it should use GBK to encode the unicode object,right? -- ___ Python tracker

[issue10187] exec encode unicode to utf-8 str automatically in GBK environment

2010-10-23 Thread wjm251
wjm251 added the comment: in windows English Version and ubuntu 10.04(locale is utf-8) all have the same the behavior, am I wrong? -- ___ Python tracker <http://bugs.python.org/issue10

[issue10187] exec encode unicode to utf-8 str automatically in GBK environment

2010-10-23 Thread wjm251
New submission from wjm251 : windows Xp chinese version see the attached file, the header was set to GBK,and the file is GBK encoded, but why the output was '\xe5\xa4\xa7'(it is utf-8 encoded of Chinese character "大") -- components: Library (Lib) files: test.py m

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread wjm251
wjm251 added the comment: sorry I donot know exactly your meaning, what does these mean: "s" format by "et " , "z" format and I'm not familiar with the C/C++ do you mean that I can use the attached patch to complie a new Python dll? but it seams that in

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread wjm251
wjm251 added the comment: I think it is supposed that unicode paths and GBK encoded str objects will be ok in Windows. But only UTF-8 encoded str can -- ___ Python tracker <http://bugs.python.org/issue9

[issue9394] shelve.open/bsddb.hashopen raise bsddb.db.DBNoSuchFileError: (2, 'No such file or directory') with Chinese Path

2010-07-28 Thread wjm251
New submission from wjm251 : Windows XP Simple Chinese Version in python2.5,Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 I have a directory "D:\你好新建文件夹" my code is as follows: #-- temppath = u"D:\\你好新

[issue9393] shelve.open/bsddb.hashopen raise Exception'No such file or directory'for "Chinese path"

2010-07-28 Thread wjm251
New submission from wjm251 : Windows XP Simple Chinese Version in python2.5,Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 I have a directory "D:\你好新建文件夹" my code is as follows: #-- temppath = u"D:\\你好新