Add if defined(ENABLE_NLS) guards around i18n-initialization.
authorRalf Corsépius <corsepiu@fedoraproject.org>
Mon, 17 Sep 2007 02:11:39 +0000 (04:11 +0200)
committerRalf Corsépius <corsepiu@fedoraproject.org>
Mon, 17 Sep 2007 02:11:39 +0000 (04:11 +0200)
lib/poptALL.c
tools/rpminject.c
tools/rpmsort.c

index 73dd2a4..cd973d8 100644 (file)
@@ -332,6 +332,7 @@ rpmcliInit(int argc, char *const argv[], struct poptOption * optionsTable)
 
 #if defined(ENABLE_NLS)
     (void) setlocale(LC_ALL, "" );
+
     (void) bindtextdomain(PACKAGE, LOCALEDIR);
     (void) textdomain(PACKAGE);
 #endif
index 2ed1e25..1a15774 100644 (file)
@@ -464,10 +464,12 @@ main(int argc, char *argv[])
 #endif
 
     setprogname(argv[0]);      /* Retrofit glibc __progname */
+#if defined(ENABLE_NLS)
     (void)setlocale(LC_ALL, "" );
 
     (void)bindtextdomain(PACKAGE, LOCALEDIR);
     (void)textdomain(PACKAGE);
+#endif
 
     optCon = poptGetContext("rpminject", 
                            argc, (const char **) argv, 
index 9b14da9..9fa3437 100644 (file)
@@ -286,10 +286,12 @@ main(int argc, const char *argv[])
     mtrace();  /* Trace malloc only if MALLOC_TRACE=mtrace-output-file. */
 #endif
     setprogname(argv[0]);      /* Retrofit glibc __progname */
+#if defined(ENABLE_NLS)
     (void)setlocale(LC_ALL, "" );
 
     (void)bindtextdomain(PACKAGE, LOCALEDIR);
     (void)textdomain(PACKAGE);
+#endif
 
     _depends_debug = 1;