[GRASS-dev] [GRASS GIS] #2601: Raster query fails with unicode error

#2601: Raster query fails with unicode error
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: wxGUI | Version: 7.0.0
Keywords: | Platform: MSWindows XP
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Tested on a fresh 7.0.0 install on XP and Vista.

Steps to reproduce - use attribute query tool on any raster map.
{{{
Traceback (most recent call last):
   File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\site-
packages\wx-2.8-msw-unicode\wx\lib\mixins\treemixin.py",
line 450, in OnItemExpanding

self.RefreshChildrenRecursively(event.GetItem())
   File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\site-
packages\wx-2.8-msw-unicode\wx\lib\mixins\treemixin.py",
line 375, in RefreshChildrenRecursively

self.RefreshItemRecursively(child, childIndex)
   File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\site-
packages\wx-2.8-msw-unicode\wx\lib\mixins\treemixin.py",
line 382, in RefreshItemRecursively

item = self.DoRefreshItem(item, itemIndex, hasChildren)
   File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\site-
packages\wx-2.8-msw-unicode\wx\lib\mixins\treemixin.py",
line 393, in DoRefreshItem

self.RefreshItemText(item, index)
   File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\site-
packages\wx-2.8-msw-unicode\wx\lib\mixins\treemixin.py",
line 403, in RefreshItemText

self.__refreshAttribute(item, index, 'ItemText')
   File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\site-
packages\wx-2.8-msw-unicode\wx\lib\mixins\treemixin.py",
line 464, in __refreshAttribute

return getattr(self, 'Set%s'%attribute)(item, value, *args)
   File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\site-
packages\wx-2.8-msw-unicode\wx\gizmos.py", line 647, in
SetItemText

return _gizmos.TreeListCtrl_SetItemText(*args, **kwargs)
   File "C:\Program Files\GRASS GIS
7.0.0\Python27\lib\encodings\cp1257.py", line 15, in decode

return codecs.charmap_decode(input,errors,decoding_table)
UnicodeDecodeError
:
'charmap' codec can't decode byte 0x81 in position 3:
character maps to <undefined>
}}}

Using same coordinates for r.what works just fine:
{{{
(Fri Feb 27 10:13:13 2015)
r.what map=geology@PERMANENT coordinates=594416.666667,4925361.11111
594416.666667|4925361.11111||9
(Fri Feb 27 10:13:14 2015) Command finished (0 sec)
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2601&gt;
GRASS GIS <http://grass.osgeo.org>

#2601: Raster query fails with unicode error
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.1
Component: wxGUI | Version: 7.0.0
Keywords: query | Platform: MSWindows XP
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by annakrat):

  * keywords: => query
  * milestone: => 7.0.1

Comment:

I can't reproduce it. I tried on Windows 8. Any idea why it doesn't work
on your side?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2601#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>