Find member does not match name in multibyte characters
Bug #1442298 reported by
KOMEDA Shinji
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Medium
|
Mark Sapiro |
Bug Description
findmember encoding is not match menber name encoding.
Related branches
Changed in mailman: | |
milestone: | 2.1.21 → 2.1.21rc1 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I see the bug, but the patch doesn't fix the problem in all cases. I think a better patch is instead of
regexp = regexp.decode()
to do
regexp = regexp. decode( Utils.GetCharSe t(mlist. preferred_ language) ).
I still need to do more testing, but I would like to know if providing this character set in this way still fixes the bug in your environment.
The problem with the original patch is decode() without a charset uses Python's default string encoding which is often ASCII resulting in UnicodeDecodeError and no change to regexp. While this doesn't make things worse, it doesn't fix the problem unless the site has changed Python's default string encoding to a charset more appropriate to the installation.