From owner-freebsd-arch@FreeBSD.ORG Wed Feb 13 20:35:14 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 64E9116A41B for ; Wed, 13 Feb 2008 20:35:14 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.73]) by mx1.freebsd.org (Postfix) with ESMTP id 541F513C465 for ; Wed, 13 Feb 2008 20:35:14 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp002-s [10.150.69.65]) by smtpoutm.mac.com (Xserve/smtpout010/MantshX 4.0) with ESMTP id m1DKZDl6007831; Wed, 13 Feb 2008 12:35:13 -0800 (PST) Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/asmtp002/MantshX 4.0) with ESMTP id m1DKZBOK016975 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 13 Feb 2008 12:35:12 -0800 (PST) Message-Id: <840B6A4A-3F3C-477A-A667-086ABFCE8BF6@mac.com> From: Marcel Moolenaar To: rick-freebsd@kiwi-computer.com In-Reply-To: <20080213195531.GA93104@keira.kiwi-computer.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 13 Feb 2008 12:35:10 -0800 References: <20080213150500.GH1340@hoeg.nl> <20080213192808.GL1340@hoeg.nl> <2672DC03-9293-4A92-969B-074CAB55176B@mac.com> <20080213195531.GA93104@keira.kiwi-computer.com> X-Mailer: Apple Mail (2.919.2) 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 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:35:14 -0000 On Feb 13, 2008, at 11:55 AM, Rick C. Petty wrote: > 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. Maybe so, but it wouldn't be a surprise to me that such is unexpected by UTF-8 parsers and could cause problems, such as the printing of error glyphs... -- Marcel Moolenaar xcllnt@mac.com