From d755929b3b33a0055cd7ead2670ad50d9c25697e Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 14 Sep 2015 17:57:01 +0000 Subject: [PATCH] MFC r287237: Respect locale settings. git-svn-id: svn://svn.freebsd.org/base/stable/10@287791 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- bin/rm/rm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/rm/rm.c b/bin/rm/rm.c index 46807b9e4..d91af54a5 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -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 -- 2.42.0