diff options
author | Marcus Brinkmann <mb@g10code.com> | 2006-05-29 14:32:47 +0000 |
---|---|---|
committer | Marcus Brinkmann <mb@g10code.com> | 2006-05-29 14:32:47 +0000 |
commit | c9e3ec5a535928dd8996f6a3d36ff0eb99510775 (patch) | |
tree | c9a364add6d59780a8226e95ba1cf5554e5f71bb /src/gpg-error.c | |
parent | 4d44c10fd16630471fd04168932c2af3ac2bc64a (diff) | |
download | libgpg-error-c9e3ec5a535928dd8996f6a3d36ff0eb99510775.tar.gz |
2006-05-29 Marcus Brinkmann <marcus@g10code.de>
* 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 <ndurner@web.de>.
Diffstat (limited to 'src/gpg-error.c')
-rw-r--r-- | src/gpg-error.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |