[osg-users] Collada writer - Bad handling filenames with spaces?
Hi all, [This is slyghtly off-topic since related to libcollada-dom] When writing a Collada file to, say, ab c.dae, the written file is named ab%20c.dae. All other characters are correctly handled (I tried french accents, arabic, chinese, cyrilic...), but not the space. I found a suspicious line of code in daeLIBXMLPlugin.cpp, line 234, in daeLIBXMLPlugin::write(), which reads: writer = xmlNewTextWriterFilename(cdom::fixUriForLibxml(name.str()).c_str(), 0); Actually the name variable seems a good URI (with %20 encoding), but the xmlNewTextWriterFilename() function seems not to convert it correctly to a filesystem name. I use Collada-DOM v2.2 (DOM 1.4), under Win32. Anyone already found this? Linux users, can you confirm (or not) the same issue? Any idea? Cheers, Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Collada writer - Bad handling filenames with spaces?
I cross-posted this to the Collada-dom bug tracker : https://sourceforge.net/tracker/?func=detailaid=3192134group_id=157838atid=805424 Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ - Sukender suky0...@free.fr a écrit : Hi all, [This is slyghtly off-topic since related to libcollada-dom] When writing a Collada file to, say, ab c.dae, the written file is named ab%20c.dae. All other characters are correctly handled (I tried french accents, arabic, chinese, cyrilic...), but not the space. I found a suspicious line of code in daeLIBXMLPlugin.cpp, line 234, in daeLIBXMLPlugin::write(), which reads: writer = xmlNewTextWriterFilename(cdom::fixUriForLibxml(name.str()).c_str(), 0); Actually the name variable seems a good URI (with %20 encoding), but the xmlNewTextWriterFilename() function seems not to convert it correctly to a filesystem name. I use Collada-DOM v2.2 (DOM 1.4), under Win32. Anyone already found this? Linux users, can you confirm (or not) the same issue? Any idea? Cheers, Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org