Hi Jan,

Well, I recall that there used to be issues with it, but I am not
Windows developer. Better test it than break stuff.

I'm not building with the VRML plugin these days, so I can't test it out... Perhaps someone else can?

The usual problems are with people entering the path interactively into
a string somewhere or loading it from a config file. Then it has to be
escaped or converted to forward slashes, no? That is what the
osgDB::convertFileNameToUnixStyle(fileName) call does.

The backslashes only need to be escaped if the string is a string literal in your program. ifstream (or fopen, or...) will work as long as the string sent to it contains the correct path. Of course, the way that will always work is with slashes instead of backslashes - they never need to be escaped so there's no question of when to escape and when not to.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to