linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: David Newall <davidn@davidnewall.com>
Cc: Jan Engelhardt <jengelh@computergmbh.de>,
	"John T." <j.thomast@yahoo.com>,
	linux-kernel@vger.kernel.org
Subject: Re: UTF-8 and Alt key in the console
Date: Sat, 29 Mar 2008 10:05:01 -0700	[thread overview]
Message-ID: <47EE76BD.2000708@zytor.com> (raw)
In-Reply-To: <47EDE2A4.8080702@davidnewall.com>

David Newall wrote:
> Jan Engelhardt wrote:
>> What do you mean by self-terminating? There is no easy
>> synchronization like in UTF-8, given you are anywhere inside
>> a text stream, how do you know (a) you are already in an
>> escape sequence and (b) how to figure out the rebegin of
>> normal text.
> 
> It's not very useful being able to tell you are inside a escape sequence
> unless you see that sequence from the start.  You do need the complete
> sequence to make sense of it.

I think what Jan is alluding to is the property of UTF-8 text that you 
can start in the middle of a string and either skip an incomplete 
character or find the beginning of it.  If you can search backwards, you 
can find the beginning of an escape sequence, too; the "skip incomplete" 
  functionality is missing, though, but as you say, isn't actually all 
that useful in real life *for the applications which use these kinds of 
escape sequences.*

	-hpa

  reply	other threads:[~2008-03-29 17:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-23 15:15 UTF-8 and Alt key in the console John T.
2008-03-23 15:29 ` Jan Engelhardt
2008-03-23 15:46   ` John T.
2008-03-23 16:54     ` H. Peter Anvin
2008-03-23 17:47       ` John T.
2008-03-23 17:55         ` H. Peter Anvin
2008-03-23 18:13           ` John T.
2008-03-23 18:46             ` Jan Engelhardt
2008-03-28 23:26               ` H. Peter Anvin
2008-03-29  0:07                 ` Jan Engelhardt
2008-03-29  0:23                   ` H. Peter Anvin
2008-03-29  0:44                     ` Jan Engelhardt
2008-03-29  1:07                       ` H. Peter Anvin
2008-03-29  6:33                       ` David Newall
2008-03-29 17:05                         ` H. Peter Anvin [this message]
2008-04-01 20:13                           ` Jan Engelhardt
2008-04-01 20:22                             ` H. Peter Anvin
2008-04-02  0:02                             ` David Newall
2008-04-02  0:38                               ` H. Peter Anvin
2008-04-06  8:46                 ` Marko Macek
2008-04-06 10:14                   ` David Newall
2008-04-06 16:37                   ` H. Peter Anvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47EE76BD.2000708@zytor.com \
    --to=hpa@zytor.com \
    --cc=davidn@davidnewall.com \
    --cc=j.thomast@yahoo.com \
    --cc=jengelh@computergmbh.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).