Curtis L. Olson writes:
> 
> David Megginson writes:
> > Curtis L. Olson writes:
> > 
> >  > The ":" path separate character might be hard to make unambiguos on
> >  > the windows platform.  But it is the standard under unix.
> >  > 
> >  > Would anyone be opposed to using the ";" character as a path separator
> >  > since these paths could show up in universeral config files.
> > 
> > We should use a different one for each OS.  If plib does not already
> > encapsulate this convention, we can write a tiny module to do so.
> 
> I know what you are saying, but this may not be possible if the path
> needs to be set systemwide for a multi-platform installation.  Or if
> it goes in the preferences.xml file or something like that.  We really
> could use a universal, platform independent delimeter in this case.

Just have these set themselves at bootup time
in the SG Path Module

I think this has got it all

Posix 
    curdir = '.'; pardir = '..'; sep = '/'; pathsep = ':'
Windows 
    curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
Mac
    curdir = ':'; pardir = '::'; sep = ':'; pathsep = '\n'
Riscos
    curdir = '@'; pardir = '^'; sep = '.'; pathsep = ','

Norman


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to