From 1f8e9dc0236a0810e68e6017a9400a1e7a70491d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Dec 2008 04:17:41 +0100 Subject: [PATCH] initialize NLS without locale support Initialize the NLS subsystem even when locale support is disabled. This may be a very exotic configuration, but it is valid. --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index a0f7c0c..8a26001 100644 --- a/src/main.c +++ b/src/main.c @@ -383,12 +383,15 @@ main(int argc, const char *argv[]) charset = charset_init(); /* initialize i18n support */ +#endif + #ifdef ENABLE_NLS setlocale(LC_MESSAGES, ""); bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR); +#ifdef ENABLE_LOCALE bind_textdomain_codeset(GETTEXT_PACKAGE, charset); - textdomain(GETTEXT_PACKAGE); #endif + textdomain(GETTEXT_PACKAGE); #endif /* initialize options */ -- 2.30.2