zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: UTF-8 fonts
Date: Wed, 25 Sep 2002 18:50:55 +0100	[thread overview]
Message-ID: <7504.1032976255@csr.com> (raw)
In-Reply-To: "Oliver Kiddle"'s message of "Wed, 25 Sep 2002 18:29:35 BST." <E17uFyh-0007Po-00@bimbo.logica.co.uk>

Oliver Kiddle wrote:
> So is your aim to use UTF-8 internally in all cases or only when it is
> the selected character set?

My aim is to use normal metafied characters whenever possible and not
worry how the byte stream is encoded until the few points where we don't
have a choice, and then to use system functions.

> > We are going to assume that bytes without the top-bit set are ASCII, and
> > the remainder require mb* handling.
> 
> Isn't it easier to just do mb* handling on everything and not go around
> checking the top bit. The mb*() functions should do that sort of stuff
> for us. mbrtowc() can be used, discarding the returned wchar_t to, for
> example consume one character of a string. So it worries about whatever
> the top bit of the bytes are or whatever the underlying multi-byte
> character encoding requires.

This is where we have a choice, but I think treating even normal ASCII
bytes with arbitrary functions is going to be horrendously inefficient.
Personally I would be perfectly happy if the shell worked only with
schemes which were extensions of ASCII.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


  reply	other threads:[~2002-09-25 17:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-25 11:11 Borzenkov Andrey
2002-09-25 11:36 ` Peter Stephenson
2002-09-25 13:27   ` Nadav Har'El
2002-09-25 17:29   ` Oliver Kiddle
2002-09-25 17:50     ` Peter Stephenson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-19 16:56 Peter Stephenson
2002-09-19 18:14 ` Clint Adams
2002-09-24 13:39 ` Oliver Kiddle
2002-09-24 16:03   ` Clint Adams
2002-09-24 17:41     ` Peter Stephenson

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=7504.1032976255@csr.com \
    --to=pws@csr.com \
    --cc=zsh-workers@sunsite.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).