Przeglądaj źródła

Use system default locale for a GRASS session. Fixes https://trac.osgeo.org/grass/ticket/2210

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59211 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 11 lat temu
rodzic
commit
82f277ce1a
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      lib/init/grass.py

+ 3 - 0
lib/init/grass.py

@@ -778,6 +778,9 @@ def set_language():
             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)