[GRASS-dev] Windows-style Pathnames
Hamish
hamish_nospam at yahoo.com
Thu Nov 2 00:14:41 EST 2006
Glynn Clements wrote:
> However, using / should work as an argument to fopen(). The issue is
> more significant if paths are constructed and stored for later use
> (e.g. in $GISRC). In that situation, we need to decide whether to:
>
> 1. create and store the pathname in the host's syntax, or
> 2. store it in Unix syntax and convert it as required.
>
> Either option will involve a lot of changes. #1 is easier to
> implement, but will probably need to be done in more places (it needs
> to be done for every pathname which might need to be in host syntax at
> some point). #2 is harder, but only needs to be performed in places
> where host syntax is known to be necessary.
option #1 means that moving a GISDBASE from window->unix will result in
breakage?
If it were limited to .grassrc6 it wouldn't be too much of a problem,
but what about path names stored in the data?
G63> cd $MAPSET
G63> cat VAR
GV_DRIVER: dbf
GV_DATABASE: $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/
DB_DRIVER: dbf
DB_DATABASE: $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/
G63> cat vector/$VECT_MAP/dbln
1 Depth cat $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/ dbf
so option #2 is probably more robust.
Hamish
More information about the grass-dev
mailing list