In develop, I switched to using realpath/_fullpath in an attempt to
better canonicalize filenames.

However, with that change, gregorio is not handing symbolically linked
files in the way it used to.  In fact, now the behavior is rather
surprising, so I am going to back out this change.

However, the old code simply decided if a path name was absolute by
checking if the first character is a '/'.  This works fine for Linux and
MaxOS X, but not for Windows.

Does anyone know of a system independent way to either normalize the
filenames without resolving symbolic links or to detect if a filename is
absolute or relative?

Alternately, I can write the method, using #define, to handle the
windows case specially (i.e., look for a : in the second position,
etc.), but if there is already a library function to do this, I'd rather
use it instead.

Any ideas?

Henry

_______________________________________________
Gregorio-devel mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-devel

Répondre à