[GRASS-SVN] r49450 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 30 20:17:10 EST 2011


Author: martinl
Date: 2011-11-30 17:17:09 -0800 (Wed, 30 Nov 2011)
New Revision: 49450

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py
Log:
wxGUI: #1493 (wxgui About GRASS fails with UnicodeDecodeError)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py	2011-12-01 00:47:43 UTC (rev 49449)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py	2011-12-01 01:17:09 UTC (rev 49450)
@@ -23,6 +23,7 @@
 """
 
 import os
+import codecs
 
 import wx
 try:
@@ -648,7 +649,7 @@
         else:
             contribfile = os.path.join(os.getenv("GISBASE"), "contributors.csv")
         if os.path.exists(contribfile):
-            contribFile = open(contribfile, 'r')
+            contribFile = codecs.open(contribfile, encoding = 'utf-8', mode = 'r')
             contribs = list()
             errLines = list()
             for line in contribFile.readlines()[1:]:



More information about the grass-commit mailing list