[ mailman-Bugs-1324907 ] Feature request: Respect terminal encoding

SourceForge.net noreply at sourceforge.net
Wed Oct 12 16:22:39 CEST 2005


Bugs item #1324907, was opened at 2005-10-12 16:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1324907&group_id=103

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: command line scripts
Group: 2.1 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Edgar Holleis (ccaracalla)
Assigned to: Nobody/Anonymous (nobody)
Summary: Feature request: Respect terminal encoding

Initial Comment:
-------------- patch ------------------

--- bin/list_members    2005-04-14 17:47:41.000000000 +0200
+++ bin/list_members.edgar      2005-10-12
15:57:10.000000000 +0200
@@ -81,7 +81,8 @@
 from email.Utils import formataddr

 PROGRAM = sys.argv[0]
-ENC = sys.getdefaultencoding()
+import locale
+language, ENC = locale.getdefaultlocale()
 COMMASPACE = ', '

 try:


------------ patch end ----------------


Justification:

.) I know many administrators who set their server's
system locale to POSIX or C but later only access those
machines from their workstations which have their
locale set to Unicode.
.) Assuming system locale == current terminal locale is
evil.

Ok, I'm sure you guys had your reasons not to do it the
way of the above patch. Never the less it would be cool
to have some finer grained control over what you get.

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

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


More information about the Mailman-coders mailing list