Opened 4 years ago

Last modified 32 hours ago

#2887 new defect

GUI startup: encoding error if location with accent has been renamed to other name

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone: 7.8.3
Component: Startup Version: svn-trunk
Keywords: encoding Cc:
CPU: Unspecified Platform: Unspecified

Description

  • 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.

Change History (8)

comment:1 Changed 4 years ago by martinl

Milestone: 7.0.47.0.5

comment:2 Changed 3 years ago by neteler

Milestone: 7.0.57.0.6

comment:3 Changed 22 months ago by neteler

Milestone: 7.0.67.0.7

comment:4 Changed 7 months ago by marisn

Milestone: 7.0.77.8.0

Still an issue. Tested with with r74428 on Linux.

comment:5 Changed 3 months ago by neteler

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:6 Changed 5 weeks ago by neteler

Milestone: 7.8.17.8.2

Ticket retargeted after milestone closed

comment:7 Changed 32 hours ago by neteler

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:8 Changed 32 hours ago by neteler

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.