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:
Terseus 2014-02-18 14:37:22 +01:00
parent 891b2bdb4f
commit 666aeac713

View File

@ -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++) {
args.push_back(argv[i]);
args.push_back(String::utf8(argv[i]));
}
List<String>::Element *I=args.front();