[GRASS-SVN] r72534 - grass/trunk/gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 23 12:18:23 PDT 2018
Author: martinl
Date: 2018-03-23 12:18:23 -0700 (Fri, 23 Mar 2018)
New Revision: 72534
Modified:
grass/trunk/gui/wxpython/dbmgr/base.py
Log:
wxGUI/dbmgr: fix sorting unicode issue
Modified: grass/trunk/gui/wxpython/dbmgr/base.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/base.py 2018-03-23 19:14:12 UTC (rev 72533)
+++ grass/trunk/gui/wxpython/dbmgr/base.py 2018-03-23 19:18:23 UTC (rev 72534)
@@ -661,7 +661,7 @@
if isinstance(
item1, types.StringType) or isinstance(
item2, types.StringTypes):
- cmpVal = locale.strcoll(str(item1), str(item2))
+ cmpVal = locale.strcoll(GetUnicodeValue(item1), GetUnicodeValue(item2))
else:
cmpVal = cmp(item1, item2)
More information about the grass-commit
mailing list