New Win32-only function. Use the wide character Win32 API to do the work
authorTor Lillqvist <tml@novell.com>
Sat, 17 Feb 2007 08:51:12 +0000 (08:51 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sat, 17 Feb 2007 08:51:12 +0000 (08:51 +0000)
commit13e2070a9a341a4e3b8d0d17c637e5b837cf06f0
treefc97d92eb1fbc7e92555f1d87f31ce5bab88c9b5
parentf13d070e20cfd7014783a81db20b78fad11df6b5
New Win32-only function. Use the wide character Win32 API to do the work

2007-02-17  Tor Lillqvist  <tml@novell.com>

* glib/gdate.c (win32_strftime_helper): New Win32-only
function. Use the wide character Win32 API to do the work of
strftime(): GetThreadLocale(), GetLocaleInfoW(), GetDateFormatW()
and GetTimeFormatW().
(g_date_strftime): On Windows use win32_strftime_helper()
instead of strftime() to avoid codepage issues with strftime().
Unfortunately using wcsftime() would not help either. (#404832)

svn path=/trunk/; revision=5339
ChangeLog
glib/gdate.c