Feature request: Respect terminal encoding

Bug #266281 reported by Ccaracalla
2
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Medium
Unassigned

Bug Description

-------------- 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.

[http://sourceforge.net/tracker/index.php?func=detail&aid=1324907&group_id=103&atid=100103]

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.