#2205: Unicode unequal comparison in location wizard when title contains non-ascii
letters
--------------------------+-------------------------
Reporter: marisn | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Comment (by hellik):
tested with
{{{
GRASS version: 7.1.svn
GRASS SVN revision: 67403
Build date: 2015-12-29
Build platform: i386-w64-mingw32
GDAL: 1.11.3
PROJ.4: 4.9.2
GEOS: 3.5.0
SQLite: 3.7.17
Python: 2.7.4
wxPython: 2.8.12.1
Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)
}}}
and āšņļ" as the location name.
{{{
Traceback (most recent call last):
File
"C:\OSGEO4~2\apps\grass\grass-7.1.svn\gui\wxpython\gui_core\widgets.py",
line 765, in Validate
if not self._condition(text):
File
"C:\OSGEO4~2\apps\grass\grass-7.1.svn\etc\python\grass\script\core.py", l
ine 1559, in legal_name
's': s, 'il': illegal})
File
"C:\OSGEO4~2\apps\grass\grass-7.1.svn\etc\python\grass\script\core.py", l
ine 618, in warning
message(msg, flag='w')
File
"C:\OSGEO4~2\apps\grass\grass-7.1.svn\etc\python\grass\script\core.py", l
ine 563, in message
run_command("g.message", flags=flag, message=msg, errors='ignore')
File
"C:\OSGEO4~2\apps\grass\grass-7.1.svn\etc\python\grass\script\core.py", l
ine 408, in run_command
ps = start_command(*args, **kwargs)
File
"C:\OSGEO4~2\apps\grass\grass-7.1.svn\etc\python\grass\script\core.py", l
ine 367, in start_command
val = encode(val)
File
"C:\OSGEO4~2\apps\grass\grass-7.1.svn\etc\python\grass\script\utils.py",
line 174, in encode
return string.encode(enc)
File "C:\OSGEO4~2\apps\Python27\lib\encodings\cp1252.py", line 12, in
encode
return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u0101' in
position
18: character maps to <undefined>
}}}
so still an issue?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2205#comment:8>
GRASS GIS <https://grass.osgeo.org>