[GRASS-dev] [GRASS GIS] #1295: Wx location wizard fails to create location if it's title contains non-latin letters

#1295: Wx location wizard fails to create location if it's title contains non-
latin letters
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: wxGUI | Version: 6.4.1 RCs
Keywords: | Platform: MSWindows Vista
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
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)
}}}

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

#1295: Wx location wizard fails to create location if it's title contains non-
latin letters
------------------------------------+---------------------------------------
Reporter: marisn | Owner: martinl
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: wxGUI | Version: 6.4.1 RCs
Keywords: location wizard, UTF-8 | Platform: MSWindows Vista
      Cpu: Unspecified |
------------------------------------+---------------------------------------
Changes (by martinl):

* cc: grass-dev@… (added)
  * keywords: => location wizard, UTF-8
  * owner: grass-dev@… => martinl

Comment:

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

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

#1295: Wx location wizard fails to create location if it's title contains non-
latin letters
------------------------------------+---------------------------------------
Reporter: marisn | Owner: martinl
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: wxGUI | Version: 6.4.1 RCs
Keywords: location wizard, UTF-8 | Platform: MSWindows Vista
      Cpu: Unspecified |
------------------------------------+---------------------------------------

Comment(by marisn):

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

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

#1295: Wx location wizard fails to create location if it's title contains non-
latin letters
------------------------------+---------------------------------------------
  Reporter: marisn | Owner: martinl
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.1
Component: wxGUI | Version: 6.4.1 RCs
Resolution: fixed | Keywords: location wizard, UTF-8
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by martinl):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:2 marisn]:
> Works fine on Windows too. Leaving open till backported to 6.4.

done in r45572. Closing the ticket.

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