Explorar o código

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 %!s(int64=14) %!d(string=hai) anos
pai
achega
6883289040
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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