[GRASS-SVN] r48072 - grass/branches/releasebranch_6_4/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 2 11:23:53 EDT 2011


Author: marisn
Date: 2011-09-02 08:23:52 -0700 (Fri, 02 Sep 2011)
New Revision: 48072

Modified:
   grass/branches/releasebranch_6_4/lib/init/gis_set.tcl
Log:
Explain possible failure due to MS-Windows character encoding handling

Modified: grass/branches/releasebranch_6_4/lib/init/gis_set.tcl
===================================================================
--- grass/branches/releasebranch_6_4/lib/init/gis_set.tcl	2011-09-02 15:10:29 UTC (rev 48071)
+++ grass/branches/releasebranch_6_4/lib/init/gis_set.tcl	2011-09-02 15:23:52 UTC (rev 48072)
@@ -933,9 +933,15 @@
 } else {
     # Something has gone terribly wrong
     # GISRC file is missing or corrupted
+    set errormsg  [format [G_msg "Something went wrong while processing GISRC file named \"%s\".\nIt's a fatal error. GRASS will not start till issue with GISRC file is fixed."] $env(GISRC) ] 
+    if { $mingw } {
+            append errormsg [G_msg "\n\nOn MS-Windows systems failure might be caused by non-latin letter in GISRC file path. \
+            Check that Your username doesn't contain non-latin letters. \
+            Due to non-latin letter encoding handling in MS-Windows, it's not possible to run GRASS if username contains non-latin letters."] 
+    }
     DialogGen .wrnDlg [G_msg "ERROR: unable to read GISRC"] warning \
-          [format [G_msg "Something went wrong while processing GISRC file named \"%s\".\nIt's a fatal error. GRASS will not start till issue with GISRC file is fixed."] $env(GISRC) ]\
-          0 OK;
+        $errormsg \
+        0 OK;
     exit 2
 }
 



More information about the grass-commit mailing list