Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#403 Bug: canonstr() with funny character

Mailman 2.1
open
nobody
Web UI (73)
5
2006-02-24
2006-02-24
IKEDA Soji
No

Utils.canonstr() generates traceback when user's
realname contains some unconvertible characters (\ufffd
etc.).

A patch is attached.

Tracebacks (line numbers have some offsets):

Traceback (most recent call last):
File "/usr/local/mailman/scripts/driver", line 87, in
run_main
main()
File "/usr/local/mailman/Mailman/Cgi/admin.py", line
176, in main
change_options(mlist, category, subcat, cgidata, doc)
File "/usr/local/mailman/Mailman/Cgi/admin.py", line
1497, in change_options
newname = Utils.canonstr(newname,
mlist.preferred_language)
File "/usr/local/mailman/Mailman/Utils.py", line 850,
in canonstr
newstr = EMPTYSTRING.join(newparts)
UnicodeDecodeError: 'ascii' codec can't decode byte
0x8e in position 0: ordinal not in range(128)

Discussion