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

GRASS GIS trac at osgeo.org
Sat Jan 3 04:19:08 PST 2015


#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:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  wxGUI        |     Version:  svn-releasebranch70      
 Keywords:               |    Platform:  MSWindows Vista          
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by hellik):

 Replying to [ticket:2524 marisn]:
 > Steps to reproduce:
 >  * mkdir "šaursliežu dzelzceļš"
 >  * copy "myshapefile.*" "šaursliežu dzelzceļš/"
 >  * start GRASS, open vector data import dialog
 >  * select "C:\balhblah\šaursliežu dzelzceļš\myshapefile.shp" as a data
 source
 > Observe how nothing happens. No error messages, no hangs, just nothing.
 No layers are listed and thus is not possible to continue with data
 import.
 >
 > GRASS version: 7.0.0svn
 > GRASS SVN Revision: 63925
 > Build Date: 2015-01-02
 > Build Platform: i686-pc-mingw32
 > GDAL/OGR: 1.11.1
 > PROJ.4: 4.8.0
 > GEOS: 3.4.2
 > SQLite: 3.7.17
 > Python: 2.7.4
 > wxPython: 2.8.12.1
 > Platform: Windows-Vista-6.0.6002-SP2

 {{{
 Traceback (most recent call last):
   File "C:\OSGeo4W\apps\Python27\lib\site-packages\wx-2.8
 -msw-unicode\wx\lib\filebrowsebutton.py", line 140, in
 OnChanged

 self.changeCallback(evt)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\gui
 _core\gselect.py", line 1920, in OnUpdate

 self._reloadLayers()
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\gui
 _core\gselect.py", line 1938, in _reloadLayers

 input = dsn)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
 e\gcmd.py", line 694, in RunCommand

 ps = grass.start_command(prog, flags, overwrite, quiet,
 verbose, **kwargs)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass
 \script\core.py", line 349, in start_command

 val = encode(val)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass
 \script\utils.py", line 218, in encode

 return string.encode(enc)
   File "C:\OSGeo4W\apps\Python27\lib\encodings\cp1252.py",
 line 12, in encode

 return codecs.charmap_encode(input,errors,encoding_table)
 UnicodeEncodeError
 :
 'charmap' codec can't encode character u'\u013c' in position
 24: character maps to <undefined>
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2524#comment:1>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list