[ mailman-Patches-1088712 ] Use correct char set for command-line scripts

SourceForge.net noreply at sourceforge.net
Mon Dec 20 23:56:52 CET 2004


Patches item #1088712, was opened at 2004-12-20 23:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1088712&group_id=103

Category: command line scripts
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Miloslav Trmac (trmac)
Assigned to: Nobody/Anonymous (nobody)
Summary: Use correct char set for command-line scripts

Initial Comment:
The command-line scripts in mailman-2.1.5 share the i18n
framework with the rest of mailman, but unlike the rest
of mailman,
mailman is not in control of the characer set used; it
should always
use the character set specified by the LC_CTYPE locale
category.
Currently on a system using e.g. LANG=cs_CZ.UTF-8 the
Czech (cs) translation is selected, but the output uses the
character set of the translation (ISO 8859-2), not UTF-8.

The attached patch (roughly against 2.1.5) adds
Mailman.i18n.C_(),
which works like _(), except that the output is in the
LC_CTYPE-specified encoding, and modifies all command-line
utilities to use it.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1088712&group_id=103


More information about the Mailman-coders mailing list