Respect locale settings.
MFC after: 2 weeks
This commit is contained in:
parent
d518359452
commit
b81cd10773
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287237
@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <fts.h>
|
#include <fts.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
|
#include <locale.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -86,6 +87,8 @@ main(int argc, char *argv[])
|
|||||||
int ch;
|
int ch;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
(void)setlocale(LC_ALL, "");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Test for the special case where the utility is called as
|
* Test for the special case where the utility is called as
|
||||||
* "unlink", for which the functionality provided is greatly
|
* "unlink", for which the functionality provided is greatly
|
||||||
|
Loading…
Reference in New Issue
Block a user