Staging
v0.8.1
https://github.com/python/cpython
Revision e6eafa2ade22dc687eee78374fa93d4b9ab7a2c1 authored by Victor Stinner on 10 June 2011, 14:32:54 UTC, committed by Victor Stinner on 10 June 2011, 14:32:54 UTC
Just try to open files from the ZIP for reading, don't extract them to avoid
UnicodeEncodeError if the filename is not encodable to the filesystem encoding
(e.g. ASCII locale encoding).
1 parent 721bb33
Raw File
Tip revision: e6eafa2ade22dc687eee78374fa93d4b9ab7a2c1 authored by Victor Stinner on 10 June 2011, 14:32:54 UTC
Issue #10801: Fix test_unicode_filenames() of test_zipfile
Tip revision: e6eafa2
.hgeol
[patterns]

# Non human-editable files are binary

**.dsp  = BIN
**.dsw  = BIN
**.mk   = BIN
**.sln  = BIN
**.vcproj  = BIN
**.vsprops = BIN

**.aif  = BIN
**.au   = BIN
**.bmp  = BIN
**.db   = BIN
**.exe  = BIN
**.icns = BIN
**.gif  = BIN
**.ico  = BIN
**.info = BIN
**.jpg  = BIN
**.pck  = BIN
**.png  = BIN
**.psd  = BIN
**.tar  = BIN
**.xar  = BIN
**.zip  = BIN

Lib/email/test/data/msg_26.txt = BIN
Lib/test/cjkencodings/* = BIN
Lib/test/sndhdrdata/sndhdr.* = BIN
Lib/test/decimaltestdata/*.decTest = BIN

# All other files (which presumably are human-editable) are "native".
# This must be the last rule!

** = native

[repository]
native = LF
back to top