okamstudio/godot — pull request #118 by Terseus (2014-02-18 14:35:03+00:00)
Title: 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`.

Tested in Archlinux x86_64.

Please test this change in Windows with a non-UTF-8 encoding (e.g. ISO-8859-15), it may break Windows-only behavior because the `execute` method in `class OS_Windows` doesn't convert the arguments to UTF-8.