From b81cd10773f6977e8e1cf485711b00ca89e17524 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Fri, 28 Aug 2015 00:49:30 +0000 Subject: [PATCH] Respect locale settings. MFC after: 2 weeks --- bin/rm/rm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/rm/rm.c b/bin/rm/rm.c index 46807b9e4e58..d91af54a5c12 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