[issue4306] email package with unicode subject/body

2008-11-12 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: "Please make this a release blocker and I will look at it this weekend. -Barry" -- priority: -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4306] email package with unicode subject/body

2008-11-12 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: The first email example (the one using a file in the library documentation) opens a text in binary mode and use the ASCII charset. It's quite strange because I expect an text to use only characters, something like: charset = 'ASCII' #

[issue4306] email package with unicode subject/body

2008-11-12 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: -> barry nosy: +barry ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Pyt

[issue4306] email package with unicode subject/body

2008-11-12 Thread STINNER Victor
New submission from STINNER Victor <[EMAIL PROTECTED]>: I never used the email package, so my issue is maybe not a bug. I'm trying to send an email with diacritics in the subject and the body. I'm french so it's natural to use characters not in the ASCII range. I wrote this small program: def

[issue4306] email package with unicode subject/body

2008-11-20 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: This example works though, and it also works in earlier Pythons. from email.header import Header def main(): # coding: utf8 ADDRESS = '[EMAIL PROTECTED]' from email.mime.text import MIMEText msg = MIMEText('accent \xe9\xf4\

[issue4306] email package with unicode subject/body

2008-11-20 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: I'm rejecting the patch because the old way of making this work still works in Python 3.0. Any larger changes to the API need to be made in the context of redesigning the email package to be byte/str aware. -- resolution: -> reject

[issue4306] email package with unicode subject/body

2008-11-20 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: > I'm rejecting the patch because the old way of making > this work still works in Python 3.0. I checked the documentation and there is a section about "email: Internationalized headers". I didn't read this section. I just expected that Py

[issue4306] email package with unicode subject/body

2008-11-20 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 20, 2008, at 5:07 PM, STINNER Victor wrote: > STINNER Victor <[EMAIL PROTECTED]> added the comment: > >> I'm rejecting the patch because the old way of making >> this work still works in