The output of perror(1) is now showing local messages for locales
supported by libc/nls PR: bin/140499 Approved by: gnn@
This commit is contained in:
parent
b93ea764d1
commit
ef45471d75
@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <err.h>
|
||||
#include <locale.h>
|
||||
#include <sys/errno.h>
|
||||
|
||||
static void usage(void);
|
||||
@ -43,6 +44,7 @@ main(int argc, char **argv)
|
||||
char *errstr;
|
||||
long errnum;
|
||||
|
||||
(void) setlocale(LC_MESSAGES, "");
|
||||
if (argc != 2)
|
||||
usage();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user