Re: Proposal for redesigning the TTY layer




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@xxxxxxx


_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: ASCII discrimination
    ... I believe Mac OS 10 uses UTF-8 by default. ... My wild-arse guess is ... "improved" to attempt to decode UTF-8 sequences and return an ... -n Do not split multi-byte characters. ...
    (comp.unix.shell)
  • =?utf-8?B?UmU6IFN0cmluZyAiw6LigqzihKIiIHRyYW5zbGF0ZWQgdG8gYXBvc3Ryb3BoZS4gV2h5Pw==?=
    ... it works), though it seems to use mostly just Ascii characters, representing ... but the author is not making the best possible use of UTF-8. ... They don't map it to ASCII apostrophe, ... Latin 1 encoding. ...
    (alt.html)
  • [PATCH] UTF-8 input: composing non-latin1 characters, and copy-paste
    ... One can put the keyboard driver into Unicode mode, load a Unicode keymap, and get single keystrokes generate valid UTF-8 for non-ASCII characters. ...
    (Linux-Kernel)
  • Re: Enhanced Unicode support for "Go" tools
    ... maybe Rene and Randy to note, perhaps - is an "ASCII compatible" ... version of UNICODE...in fact, for strict 7-bit ASCII, UTF-8 and ... characters so, being on Windows, that opinion makes great sense ... where the majority of the supported languages ...
    (alt.lang.asm)
  • Re: Special Characters in Query String
    ... I've had numerous problems with utf-8, ... in common characters in spanish not geting displayed. ... > available for encoding of characters. ... > If you can display your characters with ISO-8859-1, ...
    (microsoft.public.dotnet.framework.aspnet)