svn commit: r287791 - stable/10/bin/rm
Xin LI
delphij at FreeBSD.org
Mon Sep 14 17:57:02 UTC 2015
Author: delphij
Date: Mon Sep 14 17:57:01 2015
New Revision: 287791
URL: https://svnweb.freebsd.org/changeset/base/287791
Log:
MFC r287237: Respect locale settings.
Modified:
stable/10/bin/rm/rm.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/bin/rm/rm.c
==============================================================================
--- stable/10/bin/rm/rm.c Mon Sep 14 17:40:57 2015 (r287790)
+++ stable/10/bin/rm/rm.c Mon Sep 14 17:57:01 2015 (r287791)
@@ -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-stable
mailing list