[GRASS-SVN] r47172 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 18 15:54:07 EDT 2011
Author: martinl
Date: 2011-07-18 12:54:07 -0700 (Mon, 18 Jul 2011)
New Revision: 47172
Modified:
grass/trunk/gui/wxpython/gui_modules/dbm_base.py
Log:
wxGUI: don't encode if value is unicode
Modified: grass/trunk/gui/wxpython/gui_modules/dbm_base.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/dbm_base.py 2011-07-18 19:48:46 UTC (rev 47171)
+++ grass/trunk/gui/wxpython/gui_modules/dbm_base.py 2011-07-18 19:54:07 UTC (rev 47172)
@@ -6,7 +6,7 @@
List of classes:
- VectorDBInfo
-(C) 2007-2010 by the GRASS Development Team
+(C) 2007-2011 by the GRASS Development Team
This program is free software under the GNU General Public
License (>=v2). Read the file COPYING that comes with GRASS
@@ -28,6 +28,9 @@
def unicodeValue(value):
"""!Encode value"""
+ if type(value) == types.UnicodeType:
+ return value
+
enc = UserSettings.Get(group = 'atm', key = 'encoding', subkey = 'value')
if enc:
value = unicode(value, enc)
More information about the grass-commit
mailing list