From: Sergey Poznyakoff Date: Tue, 21 Dec 2004 14:44:15 +0000 (+0000) Subject: (main): Protect invocation of setlocale by ifdef. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=5842962ed6b5cfabccb93749639bffa85e04ae67;p=chaz%2Ftar (main): Protect invocation of setlocale by ifdef. --- 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);