[GRASS-SVN] r65839 - grass/trunk/gui/wxpython/gcp

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 5 09:47:37 PDT 2015


Author: annakrat
Date: 2015-08-05 09:47:37 -0700 (Wed, 05 Aug 2015)
New Revision: 65839

Modified:
   grass/trunk/gui/wxpython/gcp/manager.py
Log:
gcpmanager: gisrc must be string not unicode - causes problems on Windows

Modified: grass/trunk/gui/wxpython/gcp/manager.py
===================================================================
--- grass/trunk/gui/wxpython/gcp/manager.py	2015-08-05 14:05:14 UTC (rev 65838)
+++ grass/trunk/gui/wxpython/gcp/manager.py	2015-08-05 16:47:37 UTC (rev 65839)
@@ -45,7 +45,7 @@
 from core.utils import _
 from gui_core.gselect  import Select, LocationSelect, MapsetSelect
 from gui_core.dialogs  import GroupDialog
-from core.gcmd         import RunCommand, GMessage, GError, GWarning
+from core.gcmd         import RunCommand, GMessage, GError, GWarning, EncodeString
 from core.settings     import UserSettings
 from gcp.mapdisplay    import MapFrame
 from core.giface import Notification
@@ -260,7 +260,7 @@
         self.gisrc_dict['LOCATION_NAME'] = location
         self.gisrc_dict['MAPSET'] = mapset
         
-        self.source_gisrc = utils.GetTempfile()
+        self.source_gisrc = EncodeString(utils.GetTempfile())
 
         try:
             f = open(self.source_gisrc, mode='w')        



More information about the grass-commit mailing list