svn commit: r287237 - head/bin/rm
Xin LI
delphij at FreeBSD.org
Fri Aug 28 00:49:31 UTC 2015
Author: delphij
Date: Fri Aug 28 00:49:30 2015
New Revision: 287237
URL: https://svnweb.freebsd.org/changeset/base/287237
Log:
Respect locale settings.
MFC after: 2 weeks
Modified:
head/bin/rm/rm.c
Modified: head/bin/rm/rm.c
==============================================================================
--- head/bin/rm/rm.c Fri Aug 28 00:44:58 2015 (r287236)
+++ head/bin/rm/rm.c Fri Aug 28 00:49:30 2015 (r287237)
@@ -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
More information about the svn-src-head
mailing list