From 20084585ac0ebaf4bf153494da202c35e3ede974 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 13 Sep 2000 21:20:21 +0000 Subject: [PATCH] Use setlocale(3) to activate support for international characters. This should fix PR bin/11007 by Bill Sommerfeld. --- usr.sbin/syslogd/syslogd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index bf87ad3252db..c576151f8094 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $NetBSD: syslogd.c,v 1.40 2000/09/13 15:46:32 sommerfeld Exp $ */ +/* $NetBSD: syslogd.c,v 1.41 2000/09/13 21:20:21 tron Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; #else -__RCSID("$NetBSD: syslogd.c,v 1.40 2000/09/13 15:46:32 sommerfeld Exp $"); +__RCSID("$NetBSD: syslogd.c,v 1.41 2000/09/13 21:20:21 tron Exp $"); #endif #endif /* not lint */ @@ -96,6 +96,7 @@ __RCSID("$NetBSD: syslogd.c,v 1.40 2000/09/13 15:46:32 sommerfeld Exp $"); #include #include #include +#include #include #include #include @@ -228,6 +229,8 @@ main(argc, argv) char *p, *line, **pp; struct pollfd *readfds; + (void)setlocale(LC_ALL, ""); + while ((ch = getopt(argc, argv, "dsf:m:p:P:")) != -1) switch(ch) { case 'd': /* debug */