summaryrefslogtreecommitdiff
path: root/rmt
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-12-21 09:02:01 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-12-21 09:02:01 +0000
commit9ecaee9832778775230677b7f590d276976c5b0f (patch)
tree5b1fcf9ebbc8416f028388d0b3149a37b2f2b3a5 /rmt
parentbdcdca165c83e69f2854530c4fcd29e0c178f591 (diff)
downloadpaxutils-9ecaee9832778775230677b7f590d276976c5b0f.tar.gz
(main): Protect NLS initialization by #ifdef ENABLE_NLS
Diffstat (limited to 'rmt')
-rw-r--r--rmt/rmt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rmt/rmt.c b/rmt/rmt.c
index 9ac327f..d1d63df 100644
--- a/rmt/rmt.c
+++ b/rmt/rmt.c
@@ -281,9 +281,12 @@ main (int argc, char *const *argv)
tar, on messages found within error packets. */
program_name = argv[0];
+
+#ifdef ENABLE_NLS
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+#endif
switch (getopt_long (argc, argv, "", long_opts, NULL))
{