From 67c1d9e218022518225b58be5d940fe278cedb6c Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 21 Sep 2006 11:05:20 +0000 Subject: [PATCH] (m17n_init_core) [ENABLE_NLS]: Call bindtextdoman and bind_textdomain_codeset. --- src/m17n-core.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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.")); -- 1.7.10.4