From: "Nadav Har'El" <nyh@math.technion.ac.il>
To: Peter Stephenson <pws@csr.com>
Cc: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: UTF-8 fonts
Date: Wed, 25 Sep 2002 16:27:19 +0300 [thread overview]
Message-ID: <20020925132719.GA23347@fermat.math.technion.ac.il> (raw)
In-Reply-To: <10303.1032953780@csr.com>
On Wed, Sep 25, 2002, Peter Stephenson wrote about "Re: UTF-8 fonts":
> > > - determining whether the terminal is actually in UTF-8 mode, probably
> > > from the locale
> >
> > Impossible. Local names are just arbitrary chosen strings; there is no
> > "character set code" defined in any locale definition, at least on Unix.
>
> Read the document at the link I gave which suggests otherwise. However,
> I now think we can in any case leave this to the mb* suite to decide.
Here's a piece of code I used in one of my programs to tell whether the
user's terminal is in utf8 mode, based on the locale:
setlocale(LC_CTYPE, "");
is_utf8= !strcmp(nl_langinfo(CODESET),"UTF-8");
--
Nadav Har'El | Wednesday, Sep 25 2002, 19 Tishri 5763
nyh@math.technion.ac.il |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |For people who like peace and quiet - a
http://nadav.harel.org.il |phoneless cord.
next prev parent reply other threads:[~2002-09-25 13:27 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 [this message]
2002-09-25 17:29 ` Oliver Kiddle
2002-09-25 17:50 ` Peter Stephenson
-- 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=20020925132719.GA23347@fermat.math.technion.ac.il \
--to=nyh@math.technion.ac.il \
--cc=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).