You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix #19 Can't open project (with non-ASCII path)
In `class OS_Unix` the arguments in the `execute` method are converted to UTF-8, but in the `main` program's method they're inserted into a wide-char `Vector` before translating them from UTF-8 and thus the non-ASCII characters are lost. This fix converts the `argv` elements to UTF-8 using `String::utf8` before inserting them in the `Vector`.
This commit is contained in:
@@ -202,7 +202,7 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas
|
|||||||
|
|
||||||
for(int i=0;i<argc;i++) {
|
for(int i=0;i<argc;i++) {
|
||||||
|
|
||||||
args.push_back(argv[i]);
|
args.push_back(String::utf8(argv[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String>::Element *I=args.front();
|
List<String>::Element *I=args.front();
|
||||||
|
|||||||
Reference in New Issue
Block a user