[Github-comments] [geany/geany] Provide utf-8 command line arguments on Windows (#1258)

Colomban Wendling notifications at xxxxx
Wed Nov 9 09:26:29 UTC 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20161109/d89b9531/attachment.html>


More information about the Github-comments mailing list