Message137056
Prompted on IRC, I see I missed the file because it was so short.
This still isn't what I'm looking for. We are assuming that email is going to use the codec eventually so that it is not a bad thing to have charset pre-populate the codec cache. So what I'm looking for is:
try:
python_name = codecs.lookup(input_charset).name
mime_name = ALIASES.get(python_name, input_charset)
except LookupError:
mime_name = input_charset
MAL's idea was to implement the ALIASES step via a two-way mapping in the encodings module (python-canonical-name <=> MIME-preferred-name). That would be fine, too, but the email.charset logic should look like the above however the table is implemented. |
|
Date |
User |
Action |
Args |
2011-05-27 14:24:06 | r.david.murray | set | recipients:
+ r.david.murray, lemburg, ezio.melotti, eric.araujo, l0nwlf, maker |
2011-05-27 14:24:06 | r.david.murray | set | messageid: <1306506246.69.0.618156765056.issue8898@psf.upfronthosting.co.za> |
2011-05-27 14:24:06 | r.david.murray | link | issue8898 messages |
2011-05-27 14:24:05 | r.david.murray | create | |
|