Opened 8 years ago

Last modified 4 years 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 by martinl, 8 years ago

Milestone: 7.0.47.0.5

comment:2 by neteler, 7 years ago

Milestone: 7.0.57.0.6

comment:3 by neteler, 6 years ago

Milestone: 7.0.67.0.7

comment:4 by marisn, 5 years ago

Milestone: 7.0.77.8.0

Still an issue. Tested with with r74428 on Linux.

comment:5 by neteler, 5 years ago

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:6 by neteler, 4 years ago

Milestone: 7.8.17.8.2

Ticket retargeted after milestone closed

comment:7 by neteler, 4 years ago

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:8 by neteler, 4 years ago

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