From: handa Date: Thu, 21 Sep 2006 11:05:20 +0000 (+0000) Subject: (m17n_init_core) [ENABLE_NLS]: Call bindtextdoman X-Git-Tag: REL-1-3-4~47 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=67c1d9e218022518225b58be5d940fe278cedb6c;p=m17n%2Fm17n-lib.git (m17n_init_core) [ENABLE_NLS]: Call bindtextdoman and bind_textdomain_codeset. --- diff --git a/src/m17n-core.c b/src/m17n-core.c index c400a83..dbf29bb 100644 --- a/src/m17n-core.c +++ b/src/m17n-core.c @@ -565,6 +565,15 @@ m17n_init_core (void) mdatabase__finder = NULL; mdatabase__loader = NULL; +#if ENABLE_NLS + bindtextdomain ("m17n-lib", GETTEXTDIR); + bindtextdomain ("m17n-db", GETTEXTDIR); + bindtextdomain ("m17n-contrib", GETTEXTDIR); + bind_textdomain_codeset ("m17n-lib", "UTF-8"); + bind_textdomain_codeset ("m17n-db", "UTF-8"); + bind_textdomain_codeset ("m17n-contrib", "UTF-8"); +#endif + err: MDEBUG_POP_TIME (); MDEBUG_PRINT_TIME ("INIT", (stderr, " to initialize the core modules."));