From 5842962ed6b5cfabccb93749639bffa85e04ae67 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 21 Dec 2004 14:44:15 +0000 Subject: [PATCH] (main): Protect invocation of setlocale by ifdef. --- src/tar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tar.c b/src/tar.c index 74a177d..a112abf 100644 --- a/src/tar.c +++ b/src/tar.c @@ -1622,7 +1622,9 @@ main (int argc, char **argv) set_start_time (); program_name = argv[0]; +#ifdef HAVE_SETLOCALE setlocale (LC_ALL, ""); +#endif bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); -- 2.44.0