Ver código fonte

wxGUI: encode from unicode when saving module output to file, see https://trac.osgeo.org/grass/ticket/2614 (merge from trunk, https://trac.osgeo.org/grass/changeset/64809)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@64817 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 anos atrás
pai
commit
875fe8768b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      gui/wxpython/gui_core/goutput.py

+ 1 - 1
gui/wxpython/gui_core/goutput.py

@@ -384,7 +384,7 @@ class GConsoleWindow(wx.SplitterWindow):
             
             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: