about bug#1007

don’t know where to discuss this…

http://www.cocos2d-x.org/issues/1007

I don’t think it is a bug…
You have to treat data as what you want.
If you think your data is a string, you have to add ‘’ AFTER getFileData, not in getFileData function.
Or, this function just call getFileDataAsString, not getFileData

I completely agree with Splash Huang.

That’s not a bug. A binary data is just this: binary data. If the function add a NULL char at the end or anything else that then it’s changing the data.

Regards.


Please,

I agree with you. The modification is just convenient for script binding.
I have told with James, and he will undo the modification.

Thank you.

Hi, all,
I have reverted this function to original version. Thanks!