-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jean-Sébastien Guay wrote: > Hi Jan, > >> Hmm, can ifstream take a filename like "c:\data\foo.wrl" on Windows? >> If yes, we can drop the call, but I somehow doubt it. I do not have >> Windows development environment here, perhaps Jean-Sebastien can test it? > > Yes, of course it can, why would it not? It takes native filesystem > paths. Of course you'll have to escape backslashes if you're using > string literals, so it will be "c:\\data\\foo.wrl" or use slashes > instead of backslashes.
Well, I recall that there used to be issues with it, but I am not Windows developer. Better test it than break stuff. 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. Regards, Jan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFKXKCEn11XseNj94gRAkfZAKCHqeSl+gWHdTv+//ptxMHGTF9p3gCeM/oz 0iBnu8OIiqI3db1MO3fqLVk= =fnGA -----END PGP SIGNATURE----- _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
