I've recently upgraded an ancient 2.1.12 mailman installation to 2.1.39 and 
noticed an encoding issue, when adding users via add_members.

Steps to reproduce and fix the issue:

1. Put these accented user names in an utf-8 file (users-utf-8.txt):
Těst Accénti <t...@dominio.it>
Mariò Rosśi <mario.ro...@dominio.it>

2. Set un a dummy list "dummylist" with it(alian) and en(glish) as languages

3. Set italian as main language

4. remove_members --all -n -N dummylist

5. add_members -a n -w n -r users-utf-8.txt  dummylist
You will see garbage and encoding problems in the output, which you will see 
also on the web interface.

6. Switch the main language to en(glish).

7. Repeat 4&5: no garbage

8. I've edited /usr/lib/mailman/messages/it/LC_MESSAGES/mailman.po, setting
"Content-Type: text/plain; charset=UTF-8\n"
and saved it as utf-8. Then I've recompiled mailman.mo from the modified 
mailman.po

9. Switch the main language to it(alian).

10. Repeat 4&5: no garbage


Not sure it this might affect also other languages.
------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
    https://mail.python.org/archives/list/mailman-users@python.org/
Member address: arch...@jab.org

Reply via email to