[GRASS-dev] Re: [GRASS GIS] #1020: Display of vector maps fails
GRASS GIS
trac at osgeo.org
Tue Jun 1 15:43:07 EDT 2010
#1020: Display of vector maps fails
--------------------------+-------------------------------------------------
Reporter: MilenaN | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: wingrass
Platform: MSWindows 7 | Cpu: x86-64
--------------------------+-------------------------------------------------
Comment (by martinl):
Replying to [comment:9 glynn]:
> > seems to be problem with _spawnl
>
> Yep. _spawnl() simply concatenates its arguments, with spaces between
them; it doesn't perform any quoting.
>
> An example of "correct" quoting can be found in escape_arg() in
lib/gis/spawn.c. "correct" in quotes because it's up to the C runtime as
to how to parse the command line into individual arguments; the
escape_arg() function matches the MSVC behaviour, and is the same
algorithm as used by e.g. Python's subprocess module (see list2cmdline()
in subprocess.py).
>
> MSDN reference: http://msdn.microsoft.com/en-us/library/17w5ykft.aspx
Couldn't we use simply G_spawn() or G_spawn_ex()?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1020#comment:11>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list