[Bug 1647450] [NEW] bin/add_members causes NameError when DISABLE_COMMAND_LOCALE_CSET = yes

Public bug reported:
On non ascii locale and DISABLE_COMMAND_LOCALE_CSET = yes, bin/add_members get NameError because of uninitialized variable Mailman.i18n._ctype_charset, which is used by Mailman.i18n.tolocale().
When DISABLE_COMMAND_LOCALE_CSET = yes, the function tolocale() is used by bin/add_members only, so this affect only bin/add_members script.
** Affects: mailman Importance: Undecided Status: New
** Patch added: "least fix patch" https://bugs.launchpad.net/bugs/1647450/+attachment/4787690/+files/i18n.py.l...
** Branch linked: lp:mailman/2.1

Thank you for the report and patch. I have applied the patch for the next release.
** Changed in: mailman Importance: Undecided => Low
** Changed in: mailman Status: New => Fix Committed
** Changed in: mailman Milestone: None => 2.1.24
** Changed in: mailman Assignee: (unassigned) => Mark Sapiro (msapiro)

** Changed in: mailman Status: Fix Committed => Fix Released
participants (2)
-
Mark Sapiro
-
Yasuhito FUTATSUKI@POEM