commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5476 - trunk/gnue-common/src/apps


From: reinhard
Subject: r5476 - trunk/gnue-common/src/apps
Date: Tue, 23 Mar 2004 09:34:02 -0600 (CST)

Author: reinhard
Date: 2004-03-23 09:34:01 -0600 (Tue, 23 Mar 2004)
New Revision: 5476

Modified:
   trunk/gnue-common/src/apps/i18n.py
Log:
Make sure that encoding is never set to None.


Modified: trunk/gnue-common/src/apps/i18n.py
===================================================================
--- trunk/gnue-common/src/apps/i18n.py  2004-03-23 14:07:00 UTC (rev 5475)
+++ trunk/gnue-common/src/apps/i18n.py  2004-03-23 15:34:01 UTC (rev 5476)
@@ -173,6 +173,10 @@
 # This will give us the user's language and encoding even on non-POSIX systems
 (language, encoding) = locale.getdefaultlocale ()
 
+# Make sure encoding is not None
+if not encoding:
+  encoding = 'ascii'
+
 # Now define the new builtin stuff
 import __builtin__  
 __builtin__.__dict__['u_'] = utranslate





reply via email to

[Prev in Thread] Current Thread [Next in Thread]