[GRASS-dev] [GRASS GIS] #2205: Unicode unequal comparison in location wizard when title contains non-ascii letters
GRASS GIS
trac at osgeo.org
Sat Jan 3 04:13:04 PST 2015
#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.0
Component: wxGUI | Version: svn-trunk
Keywords: | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by hellik):
Replying to [comment:1 marisn]:
> Still happens with 7.0.0 r63925 on Vista.
location title works for me in Vista, but not location name:
{{{
Traceback (most recent call last):
File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\gui_core\widgets.py", l
ine 759, in Validate
if not self._condition(text):
File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\script\core.py", li
ne 1509, in legal_name
's': s, 'il': illegal})
File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\script\core.py", li
ne 570, in warning
message(msg, flag='w')
File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\script\core.py", li
ne 516, in message
run_command("g.message", flags=flag, message=msg, errors='ignore')
File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\script\core.py", li
ne 373, in run_command
ps = start_command(*args, **kwargs)
File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\script\core.py", li
ne 349, in start_command
val = encode(val)
File
"C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass\script\utils.py", l
ine 218, in encode
return string.encode(enc)
File "C:\OSGeo4W\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>
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2205#comment:2>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list