[ mailman-Bugs-672649 ] canonstr -> unicode usernames

Bugs item #672649, was opened at 2003-01-22 19:26 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100103&aid=672649&group_id=103 Category: (un)subscribing Group: 2.1 (stable) Status: Open Resolution: None Priority: 5 Submitted By: Donn Cave (donnc) Assigned to: Nobody/Anonymous (nobody) Summary: canonstr -> unicode usernames Initial Comment: Cgi.subscribe.process_form gets a unicode value for fullname, from Utils.canonstr() (return unicode(newstr, charset, 'replace') This came to my attention because it broke OwnerNotification when the email Message couldn't "flatten" itself with the unicode payload. Suspect that's only the beginning of the trouble that will be caused, so I'm hoping we really don't want unicode usernames values as a rule. I fixed it in subscribe.py with fullname = fullname.encode('iso8859-1'), but note that canonstr is used elsewhere like this. ----------------------------------------------------------------------
Comment By: Tokio Kikuchi (tkikuchi) Date: 2003-02-15 11:37
Message: Logged In: YES user_id=67709 If your users choose to input latin-1 charcters in fullname, it will be better to set iso-8859-1as english charset. in mm_cfg.py, def _(s): return s LC_DESCRIPTIONS['en'] = (_('English (USA)'), 'iso-8859-1') del _ ---------------------------------------------------------------------- Comment By: Pat Carr (pcarr) Date: 2003-02-13 04:05 Message: Logged In: YES user_id=710070 I stumbled over the same bug, but in my case it was bailing only in the confirm.py script. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100103&aid=672649&group_id=103
participants (1)
-
SourceForge.net