From 32aa915e62ebac5f18f953ab6b7a6c8230f12553 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 26 Oct 1995 10:59:43 +0000 Subject: [PATCH] Add setlocale LC_ALL --- gnu/usr.bin/tar/tar.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/usr.bin/tar/tar.c b/gnu/usr.bin/tar/tar.c index 84e2b94283ce..8fb8f810a345 100644 --- a/gnu/usr.bin/tar/tar.c +++ b/gnu/usr.bin/tar/tar.c @@ -25,6 +25,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include /* Needed for typedefs in tar.h */ +#ifdef __FreeBSD__ +#include +#endif #include "getopt.h" /* @@ -198,6 +201,10 @@ main (argc, argv) { extern char version_string[]; +#ifdef __FreeBSD__ + (void) setlocale (LC_ALL, ""); +#endif + tar = argv[0]; /* JF: was "tar" Set program name */ filename_terminator = '\n'; errors = 0;