[GRASS-SVN] r64817 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 8 12:59:57 PDT 2015


Author: annakrat
Date: 2015-03-08 12:59:57 -0700 (Sun, 08 Mar 2015)
New Revision: 64817

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/gui_core/goutput.py
Log:
wxGUI: encode from unicode when saving module output to file, see #2614 (merge from trunk, r64809)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/goutput.py	2015-03-08 17:12:25 UTC (rev 64816)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/goutput.py	2015-03-08 19:59:57 UTC (rev 64817)
@@ -384,7 +384,7 @@
             
             try:
                 output = open(path, "w")
-                output.write(text)
+                output.write(EncodeString(text))
             except IOError as e:
                 GError(_("Unable to write file '%(path)s'.\n\nDetails: %(error)s") % {'path': path, 'error': e})
             finally:



More information about the grass-commit mailing list