#1293: Creating mapset with non-latin letter gives python ascii error
--------------------------+-------------------------
Reporter: marisn | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Comment (by annakrat):
Replying to [comment:14 mlennert]:
> Replying to [comment:13 annakrat]:
> > When creating a mapset with non ascii characters from GUI menu -
Create new mapset, I am getting error:
>
> [...]
>
> >
> > The patch is probably trying to prevent from doing it.
>
> Right, I didn't try that path. And yes, the patch tries to prevent the
GUI from calling g.mapset with an illegal filename. But should the GUI do
such checks if the module already provides them ? Shouldn't the GUI just
pass on the string correctly and let the module handle the error ?
Especially if we might decide one day that mapsets should be able to have
special characters in their names ?
I agree, but we have to wrap it with try except, it tries to convert to
unicode incomplete character from g.mapset error message (Character <�>
not allowed.) I can look at it later today.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1293#comment:15>
GRASS GIS <https://grass.osgeo.org>