diff options
author | delphij <delphij@FreeBSD.org> | 2015-09-14 17:57:01 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2015-09-14 17:57:01 +0000 |
commit | 8d98cd221168ce44126124480999e99d3ea88c52 (patch) | |
tree | 991c8d071dea7d21a4fe1759f1279558b583e50c /bin | |
parent | bdd5bccf11b6be95262b785e98db67c932e2e581 (diff) | |
download | FreeBSD-src-8d98cd221168ce44126124480999e99d3ea88c52.zip FreeBSD-src-8d98cd221168ce44126124480999e99d3ea88c52.tar.gz |
MFC r287237: Respect locale settings.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/rm/rm.c | 3 |
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 |