bernhard: thuban/Thuban/UI about.py,1.18,1.19

cvs@intevation.de cvs at intevation.de
Thu Jan 20 11:00:36 CET 2005


Author: bernhard

Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv14098/Thuban/UI

Modified Files:
	about.py 
Log Message:
	* Thuban/UiI/about.py: take iso-8859-15 when getdefaultlocale returns
	None. (Fixes rt#2910.)


Index: about.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/about.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- about.py	17 Dec 2004 18:48:49 -0000	1.18
+++ about.py	20 Jan 2005 10:00:34 -0000	1.19
@@ -169,4 +169,7 @@
     # that's not direcly usable (it's missing a "cp" at the beginning).
     # getdefaultlocale does return a usable encoding name so we use that
     # instead.
-    return unicodeStr.encode(getdefaultlocale()[1])
+    locale=getdefaultlocale()[1]
+    if locale is None:
+        locale = 'iso-8859-15'
+    return unicodeStr.encode(locale)





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)