From: Max Kellermann Date: Thu, 25 Dec 2008 03:17:41 +0000 (+0100) Subject: initialize NLS without locale support X-Git-Tag: release-0.13~47 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1f8e9dc0236a0810e68e6017a9400a1e7a70491d;p=ncmpc.git 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. --- 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 */