summaryrefslogtreecommitdiffstats
path: root/sbin/restore/main.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-08-06 08:46:21 +0000
committerache <ache@FreeBSD.org>2003-08-06 08:46:21 +0000
commit10de01a46be3ee94ac910ffcf68ebf3b3ac31644 (patch)
tree09a7c2772da2438fe97a3a621e63e691dc4110a4 /sbin/restore/main.c
parent7da34893087a086403ecad1f03d077b2696d834c (diff)
downloadFreeBSD-src-10de01a46be3ee94ac910ffcf68ebf3b3ac31644.zip
FreeBSD-src-10de01a46be3ee94ac910ffcf68ebf3b3ac31644.tar.gz
Localize 'ls' output
Don't set 8bit in quote processing
Diffstat (limited to 'sbin/restore/main.c')
-rw-r--r--sbin/restore/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/restore/main.c b/sbin/restore/main.c
index 4fe2be6..d636880 100644
--- a/sbin/restore/main.c
+++ b/sbin/restore/main.c
@@ -53,6 +53,7 @@ static const char rcsid[] =
#include <err.h>
#include <limits.h>
+#include <locale.h>
#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
@@ -94,6 +95,8 @@ main(int argc, char *argv[])
if (argc < 2)
usage();
+ (void)setlocale(LC_ALL, "");
+
if ((inputdev = getenv("TAPE")) == NULL)
inputdev = _PATH_DEFTAPE;
obsolete(&argc, &argv);
OpenPOWER on IntegriCloud