[Patch Preview] move module-init and locale setup from scm to C
David Hampton
hampton-gnucash at rainbolthampton.net
Wed Jan 11 10:14:17 EST 2006
On Wed, 2006-01-11 at 11:31 +0100, Christian Stimming wrote:
> Err... no, that's not correct. gtk_init() as well as gtk_set_locale()
> initializes internationalization support *for GTK+*. We still need to
> initialize i18n support *for gnucash*.
>
> This is achieved by the four functions that we currently have -- the 3
> from Chris' patch plus setlocale(). Your previous post about
> setlocale(), which was identical to mine, was correct.
>From the gtk_set_locale() documentation:
In detail - sets the current locale according to the program
environment. This is the same as calling the C library function
setlocale (LC_ALL, "") but also takes care of the locale specific
setup of the windowing system used by GDK.
I looked into the gtk 2.6 sources and it does, in fact, make a call to
setlocale (LC_ALL, "").
David
More information about the gnucash-devel
mailing list