summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cpio
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-26 11:12:39 +0000
committerache <ache@FreeBSD.org>1995-10-26 11:12:39 +0000
commitf750dd362a46aecfce645bf5ca05bea300f20ee6 (patch)
treec3d69cdc7dfa1e6272679c6967724b370a0780f1 /gnu/usr.bin/cpio
parented337c83862164a9458044f65b141185b1c55c18 (diff)
downloadFreeBSD-src-f750dd362a46aecfce645bf5ca05bea300f20ee6.zip
FreeBSD-src-f750dd362a46aecfce645bf5ca05bea300f20ee6.tar.gz
Add setlocale LC_ALL
Diffstat (limited to 'gnu/usr.bin/cpio')
-rw-r--r--gnu/usr.bin/cpio/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/usr.bin/cpio/main.c b/gnu/usr.bin/cpio/main.c
index 78b5fc5..9346b78 100644
--- a/gnu/usr.bin/cpio/main.c
+++ b/gnu/usr.bin/cpio/main.c
@@ -23,6 +23,9 @@
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef __FreeBSD__
+#include <locale.h>
+#endif
#include "filetypes.h"
#include "system.h"
#include "cpiohdr.h"
@@ -458,6 +461,9 @@ main (argc, argv)
program_name = argv[0];
umask (0);
+#ifdef __FreeBSD__
+ (void) setlocale (LC_ALL, "");
+#endif
#ifdef __TURBOC__
_fmode = O_BINARY; /* Put stdin and stdout in binary mode. */
#endif
OpenPOWER on IntegriCloud