Staging
v0.5.1
https://github.com/python/cpython
Revision e5e366c856b677d568b4ee35194ed9b8c7d4bbb4 authored by R David Murray on 18 June 2011, 16:57:28 UTC, committed by R David Murray on 18 June 2011, 16:57:28 UTC
Analogous to the decode_header fix, this fix makes Header.append and
make_header correctly handle the unknown-8bit charset introduced by email5.1,
when the input to them is binary strings.  Previous to this fix the
make_header(decode_header(x)) == x invariant was broken in the face of the
unknown-8bit charset.
1 parent 6bdb176
Raw File
Tip revision: e5e366c856b677d568b4ee35194ed9b8c7d4bbb4 authored by R David Murray on 18 June 2011, 16:57:28 UTC
#11584: make Header and make_header handle binary unknown-8bit input
Tip revision: e5e366c
.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