From 0cde26ecde1e384d3c8c8c3ae3c7f764b52747e0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ralf=20Cors=C3=A9pius?= Date: Mon, 17 Sep 2007 04:11:59 +0200 Subject: [PATCH] Add if defined(ENABLE_NLS) guards around i18n-initialization. --- lib/trb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/trb.c b/lib/trb.c index 6da0a70..983665e 100644 --- a/lib/trb.c +++ b/lib/trb.c @@ -31,11 +31,13 @@ main(int argc, const char *argv[]) #endif setprogname(argv[0]); /* Retrofit glibc __progname */ +#if defined(ENABLE_NLS) /* set up the correct locale */ (void) setlocale(LC_ALL, "" ); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); +#endif rpmSetVerbosity(RPMMESS_NORMAL); -- 2.7.4