summaryrefslogtreecommitdiff
path: root/tools/rpmsort.c
diff options
context:
space:
mode:
authorRalf Corsépius <corsepiu@fedoraproject.org>2007-09-17 04:11:39 +0200
committerRalf Corsépius <corsepiu@fedoraproject.org>2007-09-17 04:11:39 +0200
commit05088ee6db16aba98ca305eb034bb90be7348fca (patch)
tree2068ed407b823d32cacda5591163232df2103147 /tools/rpmsort.c
parentfcbe2c86ef008ca58dbc0149f880b1e4a2eb7213 (diff)
downloadrpm-05088ee6db16aba98ca305eb034bb90be7348fca.tar.gz
rpm-05088ee6db16aba98ca305eb034bb90be7348fca.tar.bz2
rpm-05088ee6db16aba98ca305eb034bb90be7348fca.zip
Add if defined(ENABLE_NLS) guards around i18n-initialization.
Diffstat (limited to 'tools/rpmsort.c')
-rw-r--r--tools/rpmsort.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/rpmsort.c b/tools/rpmsort.c
index 9b14da966..9fa3437f0 100644
--- a/tools/rpmsort.c
+++ b/tools/rpmsort.c
@@ -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;