cocos2d/cocos2d-x — pull request #6927 by TimothyZhang (2014-05-29 05:46:49+00:00)
Title: fixed bug of cc_utf8_to_utf16() when length!=-1

cc_utf8_to_utf16 doesn't work correctly if length!=-1 and the given char* is not zero-terminated or contains zero.