[GRASS-dev] [GRASS GIS] #2525: Unable to open sqlite database if path contains non-latin letters

GRASS GIS trac at osgeo.org
Sun Jan 4 01:30:09 PST 2015


#2525: Unable to open sqlite database if path contains non-latin letters
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  major        |   Milestone:  7.0.0                    
Component:  wxGUI        |     Version:  svn-releasebranch70      
 Keywords:               |    Platform:  MSWindows Vista          
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by hellik):

 Replying to [comment:2 glynn]:
 > Replying to [ticket:2525 marisn]:
 >
 > > Seems that any operation touching attribute database fails if path
 contains non-latin letter.
 > > It is a single instance of a general problem of passing file names as
 arguments between GUI and modules.
 >
 > Do you have the same problem with filenames other than database files?
 E.g. do r.in.* or r.out.* work?

 {{{
 r.out.gdal --verbose input=MRVBF4 at user1 output=C:\wd\eudata\Māris\test.tif
 format=GTiff
 }}}

 {{{
 Exception in thread Thread-278:
 Traceback (most recent call last):
   File "C:\OSGeo4W\apps\Python27\lib\threading.py", line
 810, in __bootstrap_inner
     self.run()
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
 e\gconsole.py", line 155, in run
     self.resultQ.put((requestId, self.requestCmd.run()))
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
 e\gcmd.py", line 575, in run
     env = self.env)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
 e\gcmd.py", line 161, in __init__
     args = map(EncodeString, args)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
 e\gcmd.py", line 92, in EncodeString
     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'\u0101' in position 21: character maps to <undefined>
 }}}

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



More information about the grass-dev mailing list