Bug: canonstr() with funny character

Bug #558231 reported by hatukanezumi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Undecided
Unassigned

Bug Description

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)

Revision history for this message
hatukanezumi (hatukanezumi-users-sf) wrote :

The file mailman-cvs20060224-canonstr.patch was added: None

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.