glib/tests/date.c: Fix the tests on non-English Windows
authorChun-wei Fan <fanchunwei@src.gnome.org>
Sat, 4 Jan 2014 02:52:15 +0000 (10:52 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 7 Jan 2014 05:35:16 +0000 (13:35 +0800)
commit8bb81e7024db1f3e88cde20459ed62981cf372af
tree3cac3188e0ab1f1524532b1fe451d17994039c71
parent210f96dfcfec94946ce28e910a5ca2db78335885
glib/tests/date.c: Fix the tests on non-English Windows

The names of the month (and abbreviations) are specific to the Windows
system locale, so we need to use SetThreadLocale() to set the locale of
the running program to en-US so that it will parse "March" and "Sept" etc.
correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=719344
glib/tests/date.c