Proposal for redesigning the TTY layer
Marcel Moolenaar
xcllnt at mac.com
Wed Feb 13 12:35:14 PST 2008
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 at mac.com
More information about the freebsd-arch
mailing list