Hum, the [docs on `g_win32_get_command_line()`](https://developer.gnome.org/glib/unstable/glib-Windows-Compatibility-Functions.html#g-win32-get-command-line) mention that [`g_option_context_parse()`](https://developer.gnome.org/glib/unstable/glib-Commandline-option-parser.html#g-option-context-parse) (that we use) expects locale-encoded strings, not UTF-8 ones. GLib 2.40+ has [`g_option_context_parse_strv()`](https://developer.gnome.org/glib/unstable/glib-Commandline-option-parser.html#g-option-context-parse-strv) which expects *GLib filename encoding* (that is, UTF-8 on Windows), but it's fairly recent.
(Or we could please @codebrainz and rewrite using GApplication which does this for us… but that would be a lot of changes :)) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/1258#issuecomment-259368928
