win32: add g_win32_get_command_line()

This returns the command line in GLib filename encoding format (ie:
UTF-8) for use with g_option_context_parse_strv().

This will allow parsing of Unicode commandline arguments on Windows,
even if the characters in those arguments fall outside of the range of
the system codepage.

https://bugzilla.gnome.org/show_bug.cgi?id=722025
This commit is contained in:
Ryan Lortie
2014-01-12 12:13:42 -05:00
parent 3352293ab5
commit 673ee54cdd
3 changed files with 59 additions and 0 deletions

View File

@@ -1994,6 +1994,7 @@ g_completion_free
<FILE>windows</FILE>
MAXPATHLEN
g_win32_get_command_line
g_win32_error_message
g_win32_getlocale
g_win32_get_package_installation_directory