From owner-freebsd-i18n Sun Apr 16 21:19:40 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from nefeli.forthnet.gr (nefeli.forthnet.gr [193.92.150.20]) by hub.freebsd.org (Postfix) with ESMTP id B080237B541 for ; Sun, 16 Apr 2000 21:19:34 -0700 (PDT) (envelope-from kostop@ath.forthnet.gr) Received: from mob.mafia.gr (ppp1730.ath.forthnet.gr [212.251.66.75]) by nefeli.forthnet.gr (8.8.5/8.8.5) with ESMTP id HAA04340 for ; Mon, 17 Apr 2000 07:19:09 +0300 (EET DST) Received: (from kain@localhost) by mob.mafia.gr (8.10.0/8.10.0.Beta6) id e3H9Ik800186 for FreeBSD-i18n@freebsd.org; Mon, 17 Apr 2000 07:18:46 -0200 Date: Mon, 17 Apr 2000 07:18:46 -0200 From: Killah Message-Id: <200004170918.e3H9Ik800186@mob.mafia.gr> To: FreeBSD-i18n@freebsd.org Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG subscribe FreeBSD-i18n To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sun Apr 16 21:38:30 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by hub.freebsd.org (Postfix) with ESMTP id 0AE7637B89F for ; Sun, 16 Apr 2000 21:38:25 -0700 (PDT) (envelope-from eugen@iname.com) Received: from iname.com (kost.svzserv.kemerovo.su [213.184.65.82]) by www.svzserv.kemerovo.su (8.9.3/8.9.3) with ESMTP id MAA17409 for ; Mon, 17 Apr 2000 12:38:20 +0800 (KRAST) (envelope-from eugen@iname.com) Message-ID: <38FA957E.49FE3A7F@iname.com> Date: Mon, 17 Apr 2000 12:39:26 +0800 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: ru,en MIME-Version: 1.0 To: freebsd-i18n@freebsd.org Subject: syslogd and 8th bit. Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello! syslogd strips 8th bit from messages. Why? Eugene P.S. Is Andrew Chernow aka ache here? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Mon Apr 17 12:41:50 2000 Delivered-To: freebsd-i18n@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 542) id 3303B37B89E; Mon, 17 Apr 2000 12:41:49 -0700 (PDT) Date: Mon, 17 Apr 2000 12:41:49 -0700 From: "Andrey A. Chernov" To: Eugene Grosbein Cc: freebsd-i18n@freebsd.org Subject: Re: syslogd and 8th bit. Message-ID: <20000417124149.A64828@freebsd.org> References: <38FA957E.49FE3A7F@iname.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <38FA957E.49FE3A7F@iname.com>; from eugen@iname.com on Mon, Apr 17, 2000 at 12:39:26PM +0800 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Apr 17, 2000 at 12:39:26PM +0800, Eugene Grosbein wrote: > syslogd strips 8th bit from messages. Why? > Since it knows nothing about locale and there is a risk to put some escape or high control. Better workaround will be to strip dangerous characters only as wall do, and pass remaining untouched, I'll think about it. -- Andrey A. Chernov http://nagual.pp.ru/~ache/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Mon Apr 17 15:33:24 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from news-ma.rhein-neckar.de (news-ma.rhein-neckar.de [193.197.90.3]) by hub.freebsd.org (Postfix) with ESMTP id 0F5E937B876 for ; Mon, 17 Apr 2000 15:33:21 -0700 (PDT) (envelope-from daemon@bigeye.rhein-neckar.de) Received: from bigeye.rhein-neckar.de (uucp@localhost) by news-ma.rhein-neckar.de (8.8.8/8.8.8) with bsmtp id AAA14144 for freebsd-i18n@freebsd.org; Tue, 18 Apr 2000 00:33:20 +0200 (CEST) (envelope-from daemon@bigeye.rhein-neckar.de) Received: (from daemon@localhost) by bigeye.rhein-neckar.de (8.9.3/8.9.3) id WAA48430 for freebsd-i18n@freebsd.org; Mon, 17 Apr 2000 22:07:37 +0200 (CEST) (envelope-from daemon) From: naddy@mips.rhein-neckar.de (Christian Weisgerber) Subject: Re: syslogd and 8th bit. Date: 17 Apr 2000 22:07:37 +0200 Message-ID: <8dfqu9$1f91$1@bigeye.rhein-neckar.de> References: <38FA957E.49FE3A7F@iname.com> To: freebsd-i18n@freebsd.org Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Eugene Grosbein wrote: > syslogd strips 8th bit from messages. Why? src/usr.sbin/syslogd/syslogd.c, line ~580: while ((c = *p++ & 0177) != '\0' && q < &line[sizeof(line) - 1]) It's been like this since 4.4BSD-Lite. (I could trace it through the CSRG archives, but that wouldn't buy us anything, I guess.) I suspect it's simply a remainder from the old mindset that characters with a set top bit are invalid / control characters. Strictly speaking, accepting 8-bit characters from the net without any attached character set information (or implicit agreement that they are to be interpreted as, say, UTF-8) *is* pointless. This concerns other network protocols as well, e.g. finger. Our finger(1) uses setlocale(LC_ALL, "") and isprint(), but clearly assumes a single-byte character set. (Note that RFC1288 specifies finger to be ASCII only.) Is there a formal spec (RFC) for the syslog protocol? -- Christian "naddy" Weisgerber naddy@mips.rhein-neckar.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sat Apr 22 16:44:52 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from nulgw1.unisys.co.jp (nulgw1.unisys.co.jp [202.233.47.71]) by hub.freebsd.org (Postfix) with ESMTP id 9E9E837B8F0 for ; Sat, 22 Apr 2000 16:44:46 -0700 (PDT) (envelope-from hoshina@unisys.co.jp) Received: from nic01.unisys.co.jp ([192.168.77.101]) by nulgw1.unisys.co.jp (8.9.3+3.2W/3.7W-mx) with ESMTP id IAA17881 for ; Sun, 23 Apr 2000 08:44:35 +0900 (JST) Received: from th0010.nu.unisys.co.jp (localhost.unisys.co.jp [127.0.0.1]) by nic01.unisys.co.jp (8.9.3+3.1W/3.7W-mx) with ESMTP id IAA18894 for ; Sun, 23 Apr 2000 08:44:34 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by th0010.nu.unisys.co.jp (8.9.3/3.7W-in-wall) with ESMTP id IAA00345 for ; Sun, 23 Apr 2000 08:44:06 +0900 (JST) To: freebsd-i18n@freebsd.org From: Tsuyoshi Hoshina X-Mailer: Mew version 1.94.2 on XEmacs 21.1 (Big Bend) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000423084406H.hoshina@unisys.co.jp> Date: Sun, 23 Apr 2000 08:44:06 +0900 X-Dispatcher: imput version 20000228(IM140) Lines: 3 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG subscribe freebsd-i18n lists end To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message