summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-26 10:59:43 +0000
committerache <ache@FreeBSD.org>1995-10-26 10:59:43 +0000
commit573cc2fc297162125a1005f14684f3fd5d2c4ba8 (patch)
tree9f6cae9af2ae786589f05c5e5c003bf50c9f8db2 /gnu
parentc2d646c037642a3805bf48335f23d71ce1e72d34 (diff)
downloadFreeBSD-src-573cc2fc297162125a1005f14684f3fd5d2c4ba8.zip
FreeBSD-src-573cc2fc297162125a1005f14684f3fd5d2c4ba8.tar.gz
Add setlocale LC_ALL
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/tar/tar.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/usr.bin/tar/tar.c b/gnu/usr.bin/tar/tar.c
index 84e2b94..8fb8f81 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 <stdio.h>
#include <sys/types.h> /* Needed for typedefs in tar.h */
+#ifdef __FreeBSD__
+#include <locale.h>
+#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;
OpenPOWER on IntegriCloud