]> Dogcows Code - chaz/tar/commitdiff
(main): Protect invocation of setlocale by ifdef.
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 21 Dec 2004 14:44:15 +0000 (14:44 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 21 Dec 2004 14:44:15 +0000 (14:44 +0000)
src/tar.c

index 74a177deea5753d8cb9ff5dd76f07827daf05f28..a112abf9a950eda544cf50387640f62e06e79d55 100644 (file)
--- 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);
 
This page took 0.030209 seconds and 4 git commands to generate.