[GRASS-SVN] r47834 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 22 13:09:50 EDT 2011


Author: martinl
Date: 2011-08-22 10:09:50 -0700 (Mon, 22 Aug 2011)
New Revision: 47834

Modified:
   grass/trunk/gui/wxpython/gui_modules/wxvdriver.py
Log:
wxGUI/vdigit: force LC_NUMERIC to C


Modified: grass/trunk/gui/wxpython/gui_modules/wxvdriver.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxvdriver.py	2011-08-22 17:03:12 UTC (rev 47833)
+++ grass/trunk/gui/wxpython/gui_modules/wxvdriver.py	2011-08-22 17:09:50 UTC (rev 47834)
@@ -18,6 +18,7 @@
 """
 
 import math
+import locale
 
 import wx
 
@@ -71,7 +72,8 @@
         log = glog
         progress = gprogress
         
-        G_gisinit('')             # initialize GRASS libs
+        G_gisinit('wxvdigit')
+        locale.setlocale(locale.LC_NUMERIC, 'C')
         G_set_error_routine(errfunc) 
         G_set_percent_routine(perfunc)
         



More information about the grass-commit mailing list