summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c39eb2c)
raw | patch | inline | side by side (parent: c39eb2c)
author | Max Kellermann <max@duempel.org> | |
Thu, 25 Dec 2008 03:17:41 +0000 (04:17 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 25 Dec 2008 03:17:41 +0000 (04:17 +0100) |
Initialize the NLS subsystem even when locale support is disabled.
This may be a very exotic configuration, but it is valid.
This may be a very exotic configuration, but it is valid.
src/main.c | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index a0f7c0c99c7aedd42b204af2cfcb2d64233ebd8c..8a26001c374beb2325b3e3e6ab136d8ff254e632 100644 (file)
--- a/src/main.c
+++ b/src/main.c
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 */