From owner-freebsd-arch@FreeBSD.ORG Wed Feb 13 20:22:13 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AC5416A475 for ; Wed, 13 Feb 2008 20:22:13 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id D00D613C44B for ; Wed, 13 Feb 2008 20:22:12 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 93180 invoked by uid 2001); 13 Feb 2008 19:55:31 -0000 Date: Wed, 13 Feb 2008 13:55:31 -0600 From: "Rick C. Petty" To: Marcel Moolenaar Message-ID: <20080213195531.GA93104@keira.kiwi-computer.com> References: <20080213150500.GH1340@hoeg.nl> <20080213192808.GL1340@hoeg.nl> <2672DC03-9293-4A92-969B-074CAB55176B@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2672DC03-9293-4A92-969B-074CAB55176B@mac.com> User-Agent: Mutt/1.4.2.3i Cc: Ed Schouten , FreeBSD Arch Subject: Re: Proposal for redesigning the TTY layer X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2008 20:22:13 -0000 On Wed, Feb 13, 2008 at 11:36:56AM -0800, Marcel Moolenaar wrote: > > >I personnally think we shouldn't put multibyte-handling inside the > >clists, but within the drivers, like syscons. > > The problem with doing it that way is that insertion of control > characters, like XON/XOFF or STOP may happen right in the middle > of UTF-8 sequences. This may be problematic... Technically this shouldn't be a problem, because all subsequent UTF-8 bytes have bit 7 set and bit 6 cleared and XON/XOFF are 7-bit clean, so it should be pretty obvious that the handshaking happens in the middle of a multibyte sequence. -- Rick C. Petty