bh: thuban/Thuban/UI about.py,1.11.2.2,1.11.2.3
cvs@intevation.de
cvs at intevation.de
Fri Dec 17 16:54:25 CET 2004
Author: bh
Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv8072/Thuban/UI
Modified Files:
Tag: thuban-1-0-branch
about.py
Log Message:
(unicodeToLocale): Use getdefaultlocale
instead of getlocale because it yields a usable encoding name on
a german windows 2000
Index: about.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/about.py,v
retrieving revision 1.11.2.2
retrieving revision 1.11.2.3
diff -u -d -r1.11.2.2 -r1.11.2.3
--- about.py 15 Dec 2004 14:49:55 -0000 1.11.2.2
+++ about.py 17 Dec 2004 15:54:23 -0000 1.11.2.3
@@ -13,7 +13,7 @@
from wxPython.wx import *
-from locale import getlocale
+from locale import getdefaultlocale
from Thuban import _
from Thuban.version import versions
@@ -133,5 +133,4 @@
def unicodeToLocale(unicodeStr):
"Function to convert unicode to the user's locale encoding"
-
- return unicodeStr.encode(getlocale()[1])
+ return unicodeStr.encode(getdefaultlocale()[1])
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)