From 666aeac7137fdd43504c68944597a970e4d0f46c Mon Sep 17 00:00:00 2001 From: Terseus Date: Tue, 18 Feb 2014 14:37:22 +0100 Subject: [PATCH] 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`. --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index 21fb61c81ee..b4b9b93e899 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -202,7 +202,7 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas for(int i=0;i::Element *I=args.front();