summaryrefslogtreecommitdiff
path: root/usr.bin/perror
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2009-11-22 05:17:22 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2009-11-22 05:17:22 +0000
commitec9f71c4892d209878956b8c7186752c4226ef51 (patch)
treeb1dcc6e12bc20c588832505885eb5483d4632c00 /usr.bin/perror
parente3c2cd723730b176c51271edcbddf175425eeebb (diff)
downloadsrc-test2-ec9f71c4892d209878956b8c7186752c4226ef51.tar.gz
src-test2-ec9f71c4892d209878956b8c7186752c4226ef51.zip
Notes
Diffstat (limited to 'usr.bin/perror')
-rw-r--r--usr.bin/perror/perror.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/perror/perror.c b/usr.bin/perror/perror.c
index 6d852a7a3717..ef3db35b64b2 100644
--- a/usr.bin/perror/perror.c
+++ b/usr.bin/perror/perror.c
@@ -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();