[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: This issue is just another example of the issue #10614: I'm closing it as a duplicate. -- resolution: -> duplicate status: open -> closed ___ Python tracker

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: See also #4621. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: Oh, right. Note: the encoding looks to be GBK, not CP932: >>> '\u590d\u4ef6'.encode('gbk') b'\xb8\xb4\xbc\xfe' >>> '\u590d\u4ef6'.encode('gbk').decode('cp437') '╕┤╝■' >>> '\u590d\u4ef6'.encode('cp932') ... UnicodeEncodeError: 'cp932' codec can't encode charact

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: But according to the initial report, 3.2 does not give the expected behavior. This zip file actually stores the filename encoded with cp932, which is incorrect according to the specifications of the ZIP format (only cp437 and utf8 are valid) See issue1

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-12 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Library (Lib), Unicode ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: This is a duplicate of #10801, issue fixed in Python 3.2 or later by 33543b4e0e5d. Should we backport the fix to Python 3.1, or you can upgrade to Python 3.2? Output with Python 3.2: "╕┤╝■ test.txt". -- versions: -Python 3.2, Python 3.3 ___

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-10 Thread yaoyu
New submission from yaoyu : Python 3, ZipFile Bug In Chinese: 1. In Python3.1.3 can't extract "复件 test.txt" from test.zip ╕┤╝■ test.txt Traceback (most recent call last): File "C:\Temp\PythonZipTest\pythonzip.py", line 14, in main() File "C:\Temp\PythonZipTest\pythonzip.py", line 11, in