浏览代码

wxGUI/dbmgr: fix sorting unicode issue

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72534 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 7 年之前
父节点
当前提交
d50b5aa3b5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/dbmgr/base.py

+ 1 - 1
gui/wxpython/dbmgr/base.py

@@ -661,7 +661,7 @@ class VirtualAttributeList(wx.ListCtrl,
         if isinstance(
         if isinstance(
                 item1, types.StringType) or isinstance(
                 item1, types.StringType) or isinstance(
                 item2, types.StringTypes):
                 item2, types.StringTypes):
-            cmpVal = locale.strcoll(str(item1), str(item2))
+            cmpVal = locale.strcoll(GetUnicodeValue(item1), GetUnicodeValue(item2))
         else:
         else:
             cmpVal = cmp(item1, item2)
             cmpVal = cmp(item1, item2)