Hi Alan,

On 1/19/07, Alan Harris <[EMAIL PROTECTED]> wrote:
I realise what is happening. There must be an internal string
comparison, which is case sensitive, when trying to load the sub-tiles.
This only accepts "osga", so a file named "OSGA", which I assume is used
to build the required file name string, cannot find sub-tiles. This
happens even if the archive file name is specified on creation as "OSGA"
- so at the least there is an inconsistency. I also noted that changing
other parts of the file name to a different case does not affect the
loading of sub-tiles - only the extension. ReaderWriter etc always does
a case insensitive comparison on the extension, so it should be
compatible with that.

This was found using osgViewer after creating an archive similarly to
osgDem / osgTerrain, just as a check on the archive created, so it is
not important to me - I just think it is illogical.

Windows lack of case sensitivity strikes again - its permits sloppy
naming of files, so one can adopt inconsistent names and it hardly
seems untill you cross over into the rest of computing land.  There
are a couple of place in the OSG where Iv'e tried to cope with this,
but you can't catch it everywhere.  I don't see this as illogical or
inconsistent.

I'd recommend just being careful with case sensitivity as it'll really
bite you the day you move to another OS, suddenly things won't
compile, or your won't be able to find files on disk.

Lack of case sensitivity under windows is often confusing - just like
your email - when you write osgViewer do you really mean the osgViewer
library?  Or do you mean the osgviewer application - no where in the
OSG build or docs is the app called osgViewer so its mightily
confusing when Windows users play loose with case.

Robert.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to