[GRASS-dev] [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
Sun Mar 14 12:37:59 EDT 2010


#1005: db.out.ogr together with g.parser doesn't play nicely with non-lati
characters containing DSN
----------------------+-----------------------------------------------------
 Reporter:  marisn    |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect    |      Status:  new                      
 Priority:  normal    |   Milestone:  6.4.0                    
Component:  default   |     Version:  svn-releasebranch64      
 Keywords:  wingrass  |    Platform:  MSWindows Vista          
      Cpu:  x86-32    |  
----------------------+-----------------------------------------------------
 Select any table and set DNS to contain non-latin characters. I added -x,
 also echo before g.parser and before v.out.ogr.
 Output when running from CLI:

 {{{
 GRASS 6.4.0svn (latvija3)> db.out.ogr input=autoceli
 dsn="C:\Users\Maris\Documen
 ts\Šaursliežu dzelzceļš\šaurā datubāze"
 + '[' -z 'C:/Program Files/GRASS-64-SVN' ']'
 + '[' input=autoceli '!=' @ARGS_PARSED@ ']'
 + echo 'Calling g.parser with following args: C:/Program Files/GRASS-64-
 SVN/scri
 pts/db.out.ogr input=autoceli' 'dsn=C:\Users\Maris\Documents\Šaursliežu
 dzelzceļ
 š\šaurā datubāze'
 Calling g.parser with following args: C:/Program Files/GRASS-64-
 SVN/scripts/db.o
 ut.ogr input=autoceli dsn=C:\Users\Maris\Documents\Šaursliežu
 dzelzceļš\šaurā da
 tubāze
 + exec g.parser 'C:/Program Files/GRASS-64-SVN/scripts/db.out.ogr'
 input=autocel
 i 'dsn=C:\Users\Maris\Documents\Šaursliežu dzelzceļš\šaurā datubāze'
 DSN value before calling v.out.ogr: C:\Users\Maris\Documents\¾aurslieŲu
 dzelzceė
 Õ\Õaur? datub?ze
 ERROR 1: Failed to create directory C:\Users\Maris\Documents\Šaursliežu
 dzelzceļ
 š\šaurā datubāze
 for shapefile datastore.

 KŽ█DA:Unable to open OGR data source 'C:\Users\Maris\Documents\Šaursliežu
       dzelzceļš\šaurā datubāze'

 GRASS 6.4.0svn (latvija3)> db.out.ogr input=autoceli
 dsn="C:\Users\Maris\Documen
 ts\Šaursliežu dzelzceļš\šaurā datubāze" format=CSV
 + '[' -z 'C:/Program Files/GRASS-64-SVN' ']'
 + '[' input=autoceli '!=' @ARGS_PARSED@ ']'
 + echo 'Calling g.parser with following args: C:/Program Files/GRASS-64-
 SVN/scri
 pts/db.out.ogr input=autoceli' 'dsn=C:\Users\Maris\Documents\Šaursliežu
 dzelzceļ
 š\šaurā datubāze' format=CSV
 Calling g.parser with following args: C:/Program Files/GRASS-64-
 SVN/scripts/db.o
 ut.ogr input=autoceli dsn=C:\Users\Maris\Documents\Šaursliežu
 dzelzceļš\šaurā da
 tubāze format=CSV
 + exec g.parser 'C:/Program Files/GRASS-64-SVN/scripts/db.out.ogr'
 input=autocel
 i 'dsn=C:\Users\Maris\Documents\Šaursliežu dzelzceļš\šaurā datubāze'
 format=CSV
 DSN value before calling v.out.ogr: C:\Users\Maris\Documents\¾aurslieŲu
 dzelzceė
 Õ\Õaur? datub?ze
 Atvainojiet, <datubāze> ir nedrŅgs parametrs

 GRASS 6.4.0svn (latvija3)>
 }}}
 Output when running from wxgui:

 {{{
 (Sun Mar 14 18:33:22 2010)
 db.out.ogr input=autoceli dsn=C:\Users\Maris\Documents\Šaursliežu
 dzelzceļš\šaurā datubāze format=CSV
 + '[' -z 'C:/Program Files/GRASS-64-SVN' ']'
 + '[' input=autoceli '!=' @ARGS_PARSED@ ']'
 + echo 'Calling g.parser with following args: C:/Program
 Files/GRASS-64-SVN/scripts/db.out.ogr input=autoceli'
 'dsn=C:\Users\Maris\Documents\Šaursliežu dzelzceļš\šaurā
 datubāze' format=CSV
 + exec g.parser 'C:/Program
 Files/GRASS-64-SVN/scripts/db.out.ogr' input=autoceli
 'dsn=C:\Users\Maris\Documents\Šaursliežu dzelzceļš\šaurā
 datubāze' format=CSV
 Calling g.parser with following args: C:/Program Files/GRASS-64-
 SVN/scripts/db.out.ogr input=autoceli
 dsn=C:\Users\Maris\Documents\Šaursliežu dzelzceļš\šaurā datubāze
 format=CSV
 DSN value before calling v.out.ogr: C:\Users\Maris\Documents\¾aurslieŲu
 dzelzceėÕ\Õaurƒ datubƒze
 Atvainojiet, <datubƒze> ir nedrīgs parametrs
 (Sun Mar 14 18:33:23 2010) Command finished (0 sec)
 (Sun Mar 14 18:33:40 2010)
 db.out.ogr input=autoceli dsn=C:\Users\Maris\Documents\Šaursliežu
 dzelzceļš\šaurā datubāze
 + '[' -z 'C:/Program Files/GRASS-64-SVN' ']'
 + '[' input=autoceli '!=' @ARGS_PARSED@ ']'
 + echo 'Calling g.parser with following args: C:/Program
 Files/GRASS-64-SVN/scripts/db.out.ogr input=autoceli'
 'dsn=C:\Users\Maris\Documents\Šaursliežu dzelzceļš\šaurā
 datubāze'
 + exec g.parser 'C:/Program
 Files/GRASS-64-SVN/scripts/db.out.ogr' input=autoceli
 'dsn=C:\Users\Maris\Documents\Šaursliežu dzelzceļš\šaurā
 datubāze'
 Calling g.parser with following args: C:/Program Files/GRASS-64-
 SVN/scripts/db.out.ogr input=autoceli
 dsn=C:\Users\Maris\Documents\Šaursliežu dzelzceļš\šaurā datubāze
 DSN value before calling v.out.ogr: C:\Users\Maris\Documents\¾aurslieŲu
 dzelzceėÕ\Õaurƒ datubƒze
 ERROR 1: Failed to create directory
 C:\Users\Maris\Documents\¾aurslieŲu dzelzceėÕ\Õaurƒ datubƒze
 for shapefile datastore.
 ERROR: Unable to open OGR data source 'C:\Users\Maris\Documents\¾aurslieŲu
 dzelzceėÕ\Õaurƒ datubƒze'
 (Sun Mar 14 18:33:40 2010) Command finished (0 sec)

 }}}
 No problems observed when running on Linux with UTF-8 locale. Also there
 are no problems when pointing v.out.ogr (from wxgui) to DSN that contains
 non-latin characters.

 WinGRASS-6.4.SVN-r41428-1 running Windows Vista with region set to Latvia.

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


More information about the grass-dev mailing list