[GRASS-SVN] r59211 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Mar 8 02:43:10 PST 2014
Author: marisn
Date: 2014-03-08 02:43:10 -0800 (Sat, 08 Mar 2014)
New Revision: 59211
Modified:
grass/trunk/lib/init/grass.py
Log:
Use system default locale for a GRASS session. Fixes #2210
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2014-03-08 10:27:41 UTC (rev 59210)
+++ grass/trunk/lib/init/grass.py 2014-03-08 10:43:10 UTC (rev 59211)
@@ -778,6 +778,9 @@
break
if language == 'None':
# Language override is disabled (system language specified)
+ # As by default program runs with C locale, but users expect to
+ # have their default locale, we'll just set default locale
+ locale.setlocale(locale.LC_ALL, '')
return
warning("A language override has been requested. Trying to switch GRASS into '%s'..." % language)
More information about the grass-commit
mailing list