From 958fa040407e9f1651cc29fedc2c1d71f56755eb Mon Sep 17 00:00:00 2001 From: delphij Date: Fri, 28 Aug 2015 00:49:30 +0000 Subject: Respect locale settings. MFC after: 2 weeks --- bin/rm/rm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/rm/rm.c') 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 #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 -- cgit v1.1