diff options
author | ache <ache@FreeBSD.org> | 1995-10-23 23:36:55 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-10-23 23:36:55 +0000 |
commit | 4379ab04ffa8e258d08e1890a786539030afc4dc (patch) | |
tree | 336b08b1a08f5422f402b610e1a0d277e1a14d60 /sbin | |
parent | f564fd22e6a0874283a4d2348a1fd9bbdd4b6d73 (diff) | |
download | FreeBSD-src-4379ab04ffa8e258d08e1890a786539030afc4dc.zip FreeBSD-src-4379ab04ffa8e258d08e1890a786539030afc4dc.tar.gz |
Add setlocale LC_CTYPE
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dmesg/dmesg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c index d789f5d..4b6bdb6 100644 --- a/sbin/dmesg/dmesg.c +++ b/sbin/dmesg/dmesg.c @@ -53,6 +53,7 @@ static char sccsid[] = "@(#)dmesg.c 8.1 (Berkeley) 6/5/93"; #include <time.h> #include <unistd.h> #include <vis.h> +#include <locale.h> struct nlist nl[] = { #define X_MSGBUF 0 @@ -77,6 +78,7 @@ main(argc, argv) kvm_t *kd; char buf[5]; + (void) setlocale(LC_CTYPE, ""); memf = nlistf = NULL; while ((ch = getopt(argc, argv, "M:N:")) != EOF) switch(ch) { |