[GRASS-dev] [GRASS GIS] #2887: GUI startup: encoding error if location with accent has been renamed to other name

#2887: GUI startup: encoding error if location with accent has been renamed to
other name
-------------------------+-------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.4
Component: Startup | Version: svn-trunk
Keywords: encoding | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
* Start GRASS with GISDBASE=/home/mlennert/DonnéesGRASS
* Leave GRASS
* Rename /home/mlennert/DonnéesGRASS to /home/mlennert/DonneesGRASS
* Start GRASS without indicating a location

I get:

{{{
grass71
Nettoyage des fichiers temporaires ...
access: No such file or directory
ERREUR :LOCATION </home/mlennert/DonnéesGRASS/ETRS_4258> not available
Démarrage du SIG GRASS ...

(gis_set.py:18310): Gtk-WARNING **: Unable to locate theme engine in
module_path: "adwaita",

(gis_set.py:18310): Gtk-WARNING **: Unable to locate theme engine in
module_path: "adwaita",
Traceback (most recent call last):
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/gis_set.py", line 1115, in <module>
     GRASSStartUp = StartUp(0)
   File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line
8628, in __init__
     self._BootstrapApp()
   File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line
8196, in _BootstrapApp
     return _core_.PyApp__BootstrapApp(*args, **kwargs)
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/gis_set.py", line 1091, in OnInit
     StartUp = GRASSStartup()
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/gis_set.py", line 214, in __init__
     self._set_properties(grassVersion, grassRevisionStr)
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/gis_set.py", line 266, in _set_properties
     self.OnSetDatabase(None)
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/gis_set.py", line 867, in OnSetDatabase
     self._showError(_("Path '%s' doesn't exist.") % gisdbase)
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/gis_set.py", line 487, in _showError
     self.lmessage.SetLabel(_("Error: {text}").format(text=text))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
position 25: ordinal not in range(128)
}}}

In trunk and in release70.

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

#2887: GUI startup: encoding error if location with accent has been renamed to
other name
--------------------------+-------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.0
Component: Startup | Version: svn-trunk
Resolution: | Keywords: encoding
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by marisn):

* milestone: 7.0.7 => 7.8.0

Comment:

Still an issue. Tested with with r74428 on Linux.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2887#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>