Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
Cocos2d-x is incorrectly converting from Unicode to UTF-8 in WinRT and therefore apps are crashing for users having username with non-Latin symbols.
E.g., for Windows 8.1 user with name "Māris", writable path should be "C:/Users/Māris/AppData/.../LocalState/"
But FileUtils::getInstance()->getWritablePath();
is returning "C:/Users/M\x1ris/AppData/.../LocalState/" instead, which is invalid file path.
With this bug it is not possible to store any user data. UserDefault class is not working for the same reason
Cocos2d-x is incorrectly converting from Unicode to UTF-8 in WinRT and therefore apps are crashing for users having username with non-Latin symbols.
E.g., for Windows 8.1 user with name "Māris", writable path should be
"C:/Users/Māris/AppData/.../LocalState/"
ButFileUtils::getInstance()->getWritablePath();
is returning"C:/Users/M\x1ris/AppData/.../LocalState/"
instead, which is invalid file path.With this bug it is not possible to store any user data.
UserDefault
class is not working for the same reason