ソースを参照

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 年 前
コミット
875fe8768b
1 ファイル変更1 行追加1 行削除
  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: