Issues

Issue #389 invalid

love.filesystem.getSaveDirectory() (and related functions) don't handle unicode paths on Windows

Alex Szpakowski
created an issue

This is a physfs bug probably. getSaveDirectory() returns a wrong (bad) string if there are unicode characters in the path, which will happen if the account's username has any.

Comments (3)

  1. Boolsheet

    Is this is about the problem where the Mari0 developers try to launch the file manager of the OS through os.execute?

    You have to keep in mind that Lua does not in any way attempt to include platform specific things. It has some preprocessor macro magic, but that's as far as they go. This includes the whole unicode thing of Windows where many functions expect wchar_t if UNICODE is defined. Because there's no support for it in Lua, we compile without the UNICODE macro and everything gets interpreted as 8-bit encoded. I don't know what exact encoding will get used and if the locale has any impact.

    The get*Directory functions all return UTF-8.

  2. Log in to comment