[GRASS-dev] Re: [GRASS GIS] #1005: db.out.ogr together with g.parser doesn't play nicely with non-lati characters containing DSN

GRASS GIS trac at osgeo.org
Sat Mar 5 06:15:35 EST 2011


#1005: db.out.ogr together with g.parser doesn't play nicely with non-lati
characters containing DSN
----------------------+-----------------------------------------------------
 Reporter:  marisn    |       Owner:  grass-dev@…              
     Type:  defect    |      Status:  new                      
 Priority:  normal    |   Milestone:  6.4.0                    
Component:  Default   |     Version:  svn-releasebranch64      
 Keywords:  wingrass  |    Platform:  MSWindows Vista          
      Cpu:  x86-32    |  
----------------------+-----------------------------------------------------

Comment(by marisn):

 Yes.

 WinGRASS-6.4.SVN-r45559-1 WxGUI
 {{{
 Traceback (most recent call last):
   File "c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-
 mingw32/etc/wxpython/gui_modules/menuform.py", line 956, in
 OnRun
   File "c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-
 mingw32/etc/wxpython/gui_modules/goutput.py", line 444, in
 RunCmd
 UnicodeEncodeError
 :
 'ascii' codec can't encode character u'\u0161' in position
 66: ordinal not in range(128)
 }}}

 CLI
 {{{
 GRASS 6.4.1svn (Spearfish60)> db.out.ogr input=bugsites
 dsn="C:\Users\tests\Docu
 ments\šaursliežu dzelzceļš\šaurā datubāze"
 ERROR 1: Failed to create directory C:\Users\tests\Documents\šaursliežu
 dzelzceļ
 š\šaurā datubāze
 for shapefile datastore.

 KŽ█DA:Unable to open OGR data source 'C:\Users\tests\Documents\šaursliežu
       dzelzceļš\šaurā datubāze'
 }}}
 It seems to work from CLI, if I don't specify output file name, just
 folder. Still it creates a new folder with strange name:
 "C:\Users\tests\Documents\ÕaurslieØu dzelzceëÕ"

 CLI continued (<fails> is not a valid parameter):
 {{{
 GRASS 6.4.1svn (Spearfish60)> db.out.ogr input=bugsites
 dsn="C:\Users\tests\Docu
 ments\šaursliežu dzelzceļš\šis fails.csv" format=CSV
 Atvainojiet, <fails> ir nedrŅgs parametrs
 }}}


 Can't test 6.5 due to bug #1297

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



More information about the grass-dev mailing list