浏览代码

glynn: fix bash_history not in utf-8 problem

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46265 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 14 年之前
父节点
当前提交
6883289040
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_modules/prompt.py

+ 1 - 1
gui/wxpython/gui_modules/prompt.py

@@ -509,7 +509,7 @@ class GPrompt(object):
                                                    env['LOCATION_NAME'],
                                                    env['MAPSET'],
                                                    '.bash_history'),
-                                      encoding = 'utf-8', mode = 'r')
+                                      encoding = 'utf-8', mode = 'r', errors='replace')
         except IOError:
             return hist