[GRASS-dev] [GRASS GIS] #2524: wxGUI v.in.ogr wrapper fails to find any layers if file path contains non-latin letters

#2524: wxGUI v.in.ogr wrapper fails to find any layers if file path contains non-
latin letters
--------------------------+-----------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: normal | Milestone: 7.4.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: encoding
       CPU: Unspecified | Platform: MSWindows Vista
--------------------------+-----------------------------

Comment (by annakrat):

Some of the characters are not defined in cp1252, that's where the error
comes from. There is nothing else we can do about it except of giving a
better error message. When I switch my locale, I didn't get any error but
it still doesn't work, just as Maris describes.

This is output I get in terminal when I switch to Czech locale (cp1250).
Note that character **č** is not defined in cp1252 but is defined in
cp1250

{{{

C:\Users\anna>v.external in=C:\Users\anna\Desktop\déíáýšžč\aaaa.shp
D1/5: G_set_program_name(): v.external
D2/5: G_file_name(): path =
C:\Users\anna\Documents\grassdata\nc_basic_spm_grass7\user1
D1/5: GRASS_VECTOR_OGR defined? no
D1/5: dsn: C:\Users\anna\Desktop\dÚÝßřÜ×Ŕ\aaaa.shp
ERROR: Unable to open data source
'C:\Users\anna\Desktop\dÚÝßřÜ×Ŕ\aaaa.shp'

}}}

When I remove **č**, it works:
{{{
C:\Users\anna>v.external in=C:\Users\anna\Desktop\déíáýšž\aaaa.shp --o
D1/5: G_set_program_name(): v.external
D2/5: G_file_name(): path =
C:\Users\anna\Documents\grassdata\nc_basic_spm_grass7\user1
D1/5: GRASS_VECTOR_OGR defined? no
D1/5: dsn: C:\Users\anna\Desktop\dÚÝßřÜ×\aaaa.shp
D2/5: layer 'aaaa' was found
...
}}}

I think I am missing something here.

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