Message131126
On Wed, Mar 16, 2011 at 01:58:40PM +0000, R. David Murray wrote:
> Steffen, these look like different kinds of errors than the one you reported in this ticket.
> If they are, could you open a new issue? Either way, simple reproducers would be the most helpful.
I'm on db73857669fb, email/message.py is patched with your code,
and email/header.py is patched with email-header.2.diff.
11243-test.1.py will traceback:
15:53 ~/tmp $ python3 11243-test.1.py
Traceback (most recent call last):
File "11243-test.1.py", line 17, in <module>
msg[f] = email.header.make_header(email.header.decode_header(b))
File "/Users/steffen/usr/opt/py3k/lib/python3.3/email/header.py", line 154, in make_header
h.append(s, charset)
File "/Users/steffen/usr/opt/py3k/lib/python3.3/email/header.py", line 279, in append
s.encode(output_charset, errors)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 7: ordinal not in range(128)
I'll be down the next couple of hours, but in the meanwhile that's
all i can do anyway...
And well, i won't open a new issue due to the stuff from msg131102,
because that happen(ed) if the commented out code from
email-header.2.diff is applied, which is non-real-life code-flow?
(Though: a Message is happily read in via
email.feedparser.BytesFeedParser() and finally adjusted via
header.make_header(header.decode_header(b)) because you've asked
me to do so, and just as is done by 11243-test.1.py.) |
|
Date |
User |
Action |
Args |
2011-03-16 15:07:04 | sdaoden | set | recipients:
+ sdaoden, r.david.murray |
2011-03-16 15:07:04 | sdaoden | link | issue11243 messages |
2011-03-16 15:07:04 | sdaoden | create | |
|