Opened 13 years ago

Closed 13 years ago

#1295 closed defect (fixed)

Wx location wizard fails to create location if it's title contains non-latin letters

Reported by: marisn Owned by: martinl
Priority: normal Milestone: 6.4.1
Component: wxGUI Version: 6.4.1 RCs
Keywords: location wizard, UTF-8 Cc: grass-dev@…
CPU: Unspecified Platform: MSWindows Vista

Description

Start location wizard. Enter as a location title "āžņļ". Prceed till end. Location is created, still new location is not listed on location list unless GRASS is restarted.

Traceback (most recent call last):
  File "C:/Program Files/GRASS-64/etc/wxpython/gis_set.py", line 411, in OnWizar
d
    grassdatabase = self.tgisdbase.GetValue())
  File "c:/osgeo4w/usr/src/grass-6.4.1RC1/dist.i686-pc-mingw32/etc/wxpython/gui_
modules/location_wizard.py", line 1828, in __init__
  File "c:/osgeo4w/usr/src/grass-6.4.1RC1/dist.i686-pc-mingw32/etc/wxpython/gui_
modules/location_wizard.py", line 2020, in OnWizFinished
  File "C:\Program Files\GRASS-64\etc\python\grass\script\core.py", line 1015, i
n create_location
    fd.write(desc + os.linesep)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0122' in position 0
: ordinal not in range(128)

Change History (3)

comment:1 by martinl, 13 years ago

Cc: grass-dev@… added
Keywords: location wizard UTF-8 added
Owner: changed from grass-dev@… to martinl

Hopefully fixed in r45550 (trunk) and r45551 (devbr6). MYNAME is currently using UTF-8 encoding. Only tested on Linux.

comment:2 by marisn, 13 years ago

Works fine on Windows too. Leaving open till backported to 6.4.

in reply to:  2 comment:3 by martinl, 13 years ago

Resolution: fixed
Status: newclosed

Replying to marisn:

Works fine on Windows too. Leaving open till backported to 6.4.

done in r45572. Closing the ticket.

Note: See TracTickets for help on using tickets.