The messages of console utilities have wrong encoding

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

Bug Description

When using LANG=ru_RU.utf8 console utilities are writing me with koi8-r encoding wich is unreadable.
I can view help with redirecting 2>&1 | iconv -f koi8-r -t utf-8
but when using utilities they are completely unusable.

Archlinux, Linux kserv 3.6.8-1-ARCH #1 SMP PREEMPT Mon Nov 26 22:10:40 CET 2012 x86_64 GNU/Linux
mailman 2.1.15-2
Python 2.7.3

Feel free to contact me if more information needed.
Also: I don`t know how to program in python.

Revision history for this message
dimytch (aspamkiller) wrote :
Revision history for this message
Mark Sapiro (msapiro) wrote :

Mailman's character set for Russian is koi8-r. This means that everything which is displayed in Russian is in the koi8-r character set. You can change this to utf-8 as follows:

1) put

add_language('ru', 'Russian', 'utf-8', 'ltr')

in mm_cfg.py.

2) run iconv to transliterate all the templates in Mailman's templates/ru/ directory from koi8-r to utf-8.

3) also, run iconv to transliterate Mailman's messages/ru/LC_MESSAGES/mailman.po to utf-8 and then edit the file to replace the line

"Content-Type: text/plain; charset=koi8-r\n"

near the beginning with

"Content-Type: text/plain; charset=utf-8\n"

4) run Mailman's bin/msgfmt.py or the system's msgfmt command to compile messages/ru/LC_MESSAGES/mailman.po into the binary messages/ru/LC_MESSAGES/mailman.mo. Mailman's msgfmt.py is more forgiving of some anomalies which may or may not be present in the Russian message catalog.

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

Other bug subscribers