Date: Fri, 28 Aug 2015 00:49:31 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287237 - head/bin/rm Message-ID: <201508280049.t7S0nV2U039067@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508280049.t7S0nV2U039067>