r15512 - gnucash/trunk/src/app-utils - Fix gnc_lconv_set_utf8 on Windows, #403815.
Andreas Köhler
andi5 at cvs.gnucash.org
Mon Feb 5 22:37:18 EST 2007
Author: andi5
Date: 2007-02-05 22:37:17 -0500 (Mon, 05 Feb 2007)
New Revision: 15512
Trac: http://svn.gnucash.org/trac/changeset/15512
Modified:
gnucash/trunk/src/app-utils/gnc-ui-util.c
Log:
Fix gnc_lconv_set_utf8 on Windows, #403815.
The result of g_get_charset does not necessarily match the encoding of
strings returned by CRT functions like localeconv or strftime. In
gnc_lconv_set_utf8, convert the strings first to a wide character string
with mbstowcs and then to utf8 by g_utf16_to_utf8.
More information about the gnucash-patches
mailing list