diff options
author | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-09-17 04:11:39 +0200 |
---|---|---|
committer | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-09-17 04:11:39 +0200 |
commit | 05088ee6db16aba98ca305eb034bb90be7348fca (patch) | |
tree | 2068ed407b823d32cacda5591163232df2103147 /tools/rpmsort.c | |
parent | fcbe2c86ef008ca58dbc0149f880b1e4a2eb7213 (diff) | |
download | rpm-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.c | 2 |
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; |