yes, you're right. Also I found some code that actually converts MS slashes to unix slashes in #ifdef Win32 block and there's the policy. So my quick (naive) fix would be to convert the FileNameToUnixStyle when populating the indexMap in OSGA_Archive line 238 (for Win32). This seems to work for me.
thanks Mattias On Wed, Apr 2, 2008 at 1:55 AM, Philip Taylor <[EMAIL PROTECTED]> wrote: > I don't believe there is too big an issue with slashes and MS Windows - > just use forward slashes because most Windows library calls understand > forward slashes - required for POSIX compliancy since WinNT and VS5. You may > come unstuck when composing any "shell commands" since these must use > backward slashes - forward slash is the first letter of an option such as > dir /W. Otherwise its quite valid in Windows code to write > > fopen( "/blah/super/duper/cow.osg", ... ) etc. > > thats my 2p's worth ( approx 4 cents!!) > > PhilT > > -----Original Message----- > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] Behalf Of *Mattias Helsing > *Sent:* 01 April 2008 23:57 > *To:* OpenSceneGraph Users > *Subject:* [osg-users] osga handling on Win32 > > hi all, > I found that the DatabasePager doesn't work with osga archives on Win32. > This is classic slash bug. On lowest level a vector search fails in > OSGA_Archive.cpp line 667 because directory delimiters doesn't match. > Extracting the master(.osg) from the archive reveals that paths are stored > with un*x slashes. > What say the policy about slashes and where shall this be fixed? > > /Mattias > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

