From c9e3ec5a535928dd8996f6a3d36ff0eb99510775 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 29 May 2006 14:32:47 +0000 Subject: 2006-05-29 Marcus Brinkmann * src/init.c (gpg_err_init) [!ENABLE_NLS]: Do not initialize the locale. * src/gpg-error.c (i18n_init) [!ENABLE_NLS]: Likewise. Patch submitted by Nils Durner . --- src/gpg-error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpg-error.c') diff --git a/src/gpg-error.c b/src/gpg-error.c index 8197356..806bd54 100644 --- a/src/gpg-error.c +++ b/src/gpg-error.c @@ -64,16 +64,15 @@ static void drop_locale_dir (char *locale_dir); static void i18n_init (void) { +#ifdef ENABLE_NLS char *locale_dir; -#ifdef ENABLE_NLS # ifdef HAVE_LC_MESSAGES setlocale (LC_TIME, ""); setlocale (LC_MESSAGES, ""); # else setlocale (LC_ALL, "" ); # endif -#endif locale_dir = get_locale_dir (); if (locale_dir) @@ -82,6 +81,7 @@ i18n_init (void) drop_locale_dir (locale_dir); } textdomain (PACKAGE); +#endif } -- cgit v1.2.3