summaryrefslogtreecommitdiffstats
path: root/bin/rm
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-08-28 00:49:30 +0000
committerdelphij <delphij@FreeBSD.org>2015-08-28 00:49:30 +0000
commit958fa040407e9f1651cc29fedc2c1d71f56755eb (patch)
tree3337eb4c2b350dfd042086b3c14af0e7175caec9 /bin/rm
parent5ec82107b61b159ab874773644b3df4880e4874e (diff)
downloadFreeBSD-src-958fa040407e9f1651cc29fedc2c1d71f56755eb.zip
FreeBSD-src-958fa040407e9f1651cc29fedc2c1d71f56755eb.tar.gz
Respect locale settings.
MFC after: 2 weeks
Diffstat (limited to 'bin/rm')
-rw-r--r--bin/rm/rm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c
index 46807b9..d91af54 100644
--- a/bin/rm/rm.c
+++ b/bin/rm/rm.c
@@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
#include <fcntl.h>
#include <fts.h>
#include <grp.h>
+#include <locale.h>
#include <pwd.h>
#include <stdint.h>
#include <stdio.h>
@@ -86,6 +87,8 @@ main(int argc, char *argv[])
int ch;
char *p;
+ (void)setlocale(LC_ALL, "");
+
/*
* Test for the special case where the utility is called as
* "unlink", for which the functionality provided is greatly
OpenPOWER on IntegriCloud