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

cvs@intevation.de cvs at intevation.de
Thu Jan 20 14:14:16 CET 2005


Author: bernhard

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

Modified Files:
	about.py 
Log Message:
	* Thuban/UI/about.py (unicodeToLocale()): Improved:
	Use 'ascii' and then 'replace' for other characters 
	when getdefaultlocale returns None. Thanks to Bernhard H. .


Index: about.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/about.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- about.py	20 Jan 2005 10:00:34 -0000	1.19
+++ about.py	20 Jan 2005 13:14:14 -0000	1.20
@@ -171,5 +171,5 @@
     # instead.
     locale=getdefaultlocale()[1]
     if locale is None:
-        locale = 'iso-8859-15'
-    return unicodeStr.encode(locale)
+        locale = 'ascii'
+    return unicodeStr.encode(locale,'replace')





More information about the Thuban-devel mailing list

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