-
-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CPP] Sys.getCwd()
returns wrong path if the path contains non-ascii chars
#11552
Comments
Are you sure the problem is with Maybe test: trace("C:\\game\\export\\windows\\я\\");
trace(Sys.getCwd());
trace(Sys.getCwd() == "C:\\game\\export\\windows\\я\\"); |
Thanks for pointing this. Indeed comparison (slightly changed though) returns trace("C:\\game\\export\\windows\\я");
trace(Sys.getCwd());
trace(Sys.getCwd() == "C:\\game\\export\\windows\\я/");
I will do more tests with Lime then. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following this openfl/lime/issues/1757 issue, I though I found a workaround, but it didn't work for cpp.
So, Lime structures get incorrect path to assets and the app crashes. Using
Sys.getCwd()
to get the correct path worked for my case only on HL. Trying it oncpp
I still get the crash - non-ascii path results with wrong string returned bySys.getCwd()
.what it should be
but it is
As was stated in similar issue #10859, tediously telling the users how to "properly start" the app is annoying.
The text was updated successfully, but these errors were encountered: