gio-du: Improve test program on Windows
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 13 Sep 2013 09:42:44 +0000 (17:42 +0800)
committerRyan Lortie <desrt@desrt.ca>
Mon, 16 Sep 2013 17:40:14 +0000 (13:40 -0400)
commit2684dec44786b8463f27ec14547cfafab80c28a1
tree857157a0d6c2fd1cec4035cd2d4eb94c93e7dba6
parent084e5b0122d52f66d9320fb9b147ca4c62d3e9ac
gio-du: Improve test program on Windows

Make use of __wgetmainargs() on Windows so that we can get wide char
versions of the argv's that are passed in when this test program is being
invoked.  This is necessary as one might enter non-ASCII, such as
CJK characters filenames and/or directories to run the test program
against, so that we can process the name(s) and pass the proper
UTF-8-encoded name(s) of the files/directories that is being tested.

https://bugzilla.gnome.org/show_bug.cgi?id=707787
gio/tests/gio-du.c