[Bug 1442298] Re: Find member does not match name in multibyte characters

Mark Sapiro mark at msapiro.net
Mon Apr 13 18:56:18 CEST 2015


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.GetCharSet(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.

** Changed in: mailman
   Importance: Undecided => Medium

** Changed in: mailman
       Status: New => Confirmed

** Changed in: mailman
     Assignee: (unassigned) => Mark Sapiro (msapiro)

-- 
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
https://bugs.launchpad.net/bugs/1442298

Title:
  Find member does not match  name in multibyte characters

To manage notifications about this bug go to:
https://bugs.launchpad.net/mailman/+bug/1442298/+subscriptions


More information about the Mailman-coders mailing list