#131 cdom::uriToNativePath not transforming all the characters

open
Andy Lorino
General (42)
5
2009-04-14
2009-04-14
Ellen Finch
No

(Transferring from http://www.khronos.org/bugzilla/show_bug.cgi?id=95\)

Description From Licu 2008-11-11 11:17:31

Sometimes, in file paths, you have other special characters (instead of ' '
(space), you can have +, ~ etc). In this case, to give you an example, the path
appears like:

<init_from>file:///C:/Assets/3DModels//wall7%2B2.jpg</init_from>

For c:\assets\3DModels\wall+2.jpg

cdom::uriToNativePath for the file name will return wall7%2B2.jpg instead of
wall+2.jpg which is the correct native format.

Looking at the daeURI.cpp you can see that the function replaces only space
(%20).
Instead it should replace all the special characters (beginning with %) by
treating the next 2 letters as the ASCII code (in hex representation).

Regards,
Adrian L.
Quad Software

Discussion