lime: lime.system.System.applicationStorageDirectory does not work with UTF-8 characters

We’re having users complaining of crashes when we try to access the application storage directory on Windows (not sure if it happens in other platforms yet). Currently we have two cases happening, one from a user whose name has Latin characters (his name is André) and the other is Russian (his name is Александр). This is the error message he got: https://prnt.sc/gso7qf

Looks like the call to (in SDLSystem.cpp line 108) SDL_GetPrefPath returns garbled text, even after the conversion to std::wstring.

I’m currently looking into the problem and will report back when i find some more clues as to why it is happening. In the meantime, any help or clues are more than welcome 😃

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 28 (23 by maintainers)

Most upvoted comments

Haha, jinx!

Oh, I meant an easier way. One second.

So it looks like this is where the file system call originates in lime: https://github.com/openfl/lime/blob/develop/lime/system/System.hx#L432

And that is defined here: https://github.com/openfl/lime/blob/511f99e378d7ab65653148b16d41a33ae7d0e167/project/src/ExternalInterface.cpp#L1447

This might not be a haxe/hxcpp issue after all. Pinging @jgranick ?