Staging
v0.5.1
https://github.com/python/cpython
Revision 712d474d3c32a7675431e518a5f2ebd4551d8903 authored by Barry Warsaw on 29 April 2005, 12:12:02 UTC, committed by Barry Warsaw on 29 April 2005, 12:12:02 UTC
an RFC 2231-style header could be bogus or unknown to Python.  In that case,
we return the the text part of the parameter undecoded.  However, in
get_content_charset(), if that is not ascii, then it is an illegal charset and
so we return failobj.

Test cases and a version bump are included.

Committing this to the Python 2.3 branch because I need to generate an email
2.5.6 release that contains these patches.  I will port these fixes to Python
2.4 and 2.5 for email 3.x.
1 parent af0659f
History
Tip revision: 712d474d3c32a7675431e518a5f2ebd4551d8903 authored by Barry Warsaw on 29 April 2005, 12:12:02 UTC
get_filename(), get_content_charset(): It's possible that the charset named in
Tip revision: 712d474
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.6 KB
LICENSE -rw-r--r-- 12.9 KB
Makefile.pre.in -rw-r--r-- 31.3 KB
README -rw-r--r-- 48.3 KB
aclocal.m4 -rw-r--r-- 2.1 KB
configure -rwxr-xr-x 590.0 KB
configure.in -rw-r--r-- 86.0 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 24.7 KB
setup.py -rw-r--r-- 51.2 KB

README

back to top