#1607: WXGUI regression - attribute query fails to display text attribute values
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: 6.4.2
Keywords: query | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by marisn):
Replying to [comment:3 neteler]:
> Yes, confirmed.
>
> while GRASS' wxGUI query tool cannot giving the indicated error.
>
> Also the Tcl/TK form fails: "nosaukums : âðòï "
Well - OGR just passes raw string trough. It's not correct, still for a
latin letters based text it will work just fine. I made a bad example, as
I should be using example "Rîga", which is incorrect, still for anyone in
Latvia it would be clear that it should be "Rīga". GRASS 6.4.0 was just
passing-through any attribute data and thus ignored any coding issues.
Changes in 6.4.x introduced (broken by design) recoding of values and thus
instead of just seeing broken string, that might be meaningful enough to
be fine, now it displays error message. Saying "just set correct encoding
in blahblah" for non-technical users equals "no attributes for You!".
Why it's broken? Try to set encoding in preferences to datasets encoding:
"CP-1257"
{{{
Settings applied to current session but not saved
Traceback (most recent call last):
File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/lmgr/frame.py", line 1355, in
OnShowAttributeTable
selection = selection)
File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/dbmgr/manager.py", line 641, in __init__
self._createBrowsePage()
File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/dbmgr/manager.py", line 688, in
_createBrowsePage
self.mapDBInfo, layer)
File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/dbmgr/manager.py", line 93, in __init__
keyColumn = self.LoadData(layer)
File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/dbmgr/manager.py", line 246, in LoadData
self.AddDataRow(i, record, columns, keyId)
File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/dbmgr/manager.py", line 295, in AddDataRow
self.itemDataMap[i].append(unicodeValue(value))
File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/dbmgr/vinfo.py", line 35, in unicodeValue
value = unicode(value, enc)
LookupError
:
unknown encoding: CP-1257
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1607#comment:4>
GRASS GIS <http://grass.osgeo.org>