Menu

#150 Writing a filename with spaces results in "%20"

open
General (42)
5
2011-02-25
2011-02-25
Sukender
No

Hi,

[This has been reported on osg-users mailing list too]

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

Discussion


Log in to post a comment.