Hi,
At Sat, 30 Jun 2001 08:48:15 +0100 (BST),
Markus Kuhn <[EMAIL PROTECTED]> wrote:
> I added to xterm and less long ago code that searches for the substring
> "UTF-8" in LC_ALL || LC_CTYPE || LANG, long before glibc had any UTF-8
> locale and I knew about either nl_langinfo() or even libcharset. It is now
> obvious that nl_langinfo or libcharset is the proper solution to find out
> whether we should activate UTF-8 mode or not. My only agenda here is that
> I want to get rid of the necessity to remember application-specific
> command line switches such as -u8. I consider the -u8 deprecated and would
> appreciate if people wouldn't mention it any more.
Yes. I strongly agree that we should not introduce application-specific
command line switches such as -u8. (In Japan, there are some books which
read how to configure such softwares. For example, you need
"*international: yes" line in your ~/.Xresources to use xterm with Japanese.
You need kterm instead of xterm. Use jless instead of less. Some of
"internationalized" X softwares have "multibyte" option to enable it.
Be careful not to specify "-*-helvetica-*" font for Japanese.
I also bought a few books to establish Japanese environment when I
started to use Linux. That is a mess! Only setting LANG should be enough.
(Who need a book to simply set LANG variable!)
Using nl_langinfo() and libcharset _only_ to detect UTF-8 locale
is, I think, too heavy. It can be used also to detect other encodings,
including ISO-8859-*, EUC-*, KOI8-*, and so on. Such an information
can be used to enable the encoding by calling iconv() or calling luit
from XTerm.
> Please don't try to read my mind remotely. Please use the continuously
> updated core dump of my mind at
>
> http://www.cl.cam.ac.uk/~mgk25/unicode.html
>
> instead. :-)
I read your intension also from your mails to mailing lists.
---
Tomohiro KUBOTA <[EMAIL PROTECTED]>
http://www.debian.or.jp/~kubota/
"Introduction to I18N" http://www.debian.org/doc/manuals/intro-i18n/
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/