Issue #389 invalid

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

Alex Szpakowski avatarAlex 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.