On Sat, 30 Jun 2001, Tomohiro KUBOTA wrote:
> However, recently, Markus said
> >> http://clisp.cons.org/~haible/packages-libcharset.html
> > Thanks, that's exactly what I was looking for! May be, xterm and less
> > should use that as well ...
>
> Though the Robert's patch already used it. Thus, I thought Markus
> underestimates the portability of Robert's patch by not knowing
> libcharset.
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.
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. :-)
Markus
--
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/>
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/