[GRASS-SVN] r72374 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 16 05:07:20 PDT 2018


Author: martinl
Date: 2018-03-16 05:07:20 -0700 (Fri, 16 Mar 2018)
New Revision: 72374

Modified:
   grass/trunk/lib/init/grass.py
Log:
disable to_text_string() in grass.py, see #3508

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2018-03-16 11:02:21 UTC (rev 72373)
+++ grass/trunk/lib/init/grass.py	2018-03-16 12:07:20 UTC (rev 72374)
@@ -56,7 +56,7 @@
     ENCODING = 'UTF-8'
     print("Default locale not found, using UTF-8")  # intentionally not translatable
 
-
+# currently not used, see https://trac.osgeo.org/grass/ticket/3508
 def to_text_string(obj, encoding=ENCODING):
     """Convert `obj` to (unicode) text string"""
     if PY2:
@@ -613,11 +613,15 @@
             pass
 
         if sys_man_path:
-            os.environ['MANPATH'] = to_text_string(sys_man_path)
+            # to_text_string disabled, see https://trac.osgeo.org/grass/ticket/3508
+            # os.environ['MANPATH'] = to_text_string(sys_man_path)
+            os.environ['MANPATH'] = sys_man_path
             path_prepend(addons_man_path, 'MANPATH')
             path_prepend(grass_man_path, 'MANPATH')
         else:
-            os.environ['MANPATH'] = to_text_string(addons_man_path)
+            # to_text_string disabled, see https://trac.osgeo.org/grass/ticket/3508
+            # os.environ['MANPATH'] = to_text_string(addons_man_path)
+            os.environ['MANPATH'] = addons_man_path
             path_prepend(grass_man_path, 'MANPATH')
 
     # Set LD_LIBRARY_PATH (etc) to find GRASS shared libraries



More information about the grass-commit mailing list