Followup to:  <[EMAIL PROTECTED]>
By author:    Tomohiro KUBOTA <[EMAIL PROTECTED]>
In newsgroup: linux.utf8
> 
> Locale-dependency is a mandatory.  All text-handling softwares which
> don't obey LC_CTYPE should be regarded as buggy.
> 

That is not the problem.  There is a *MAJOR* problem with the locale
API: it's global state.  There is a lot of software that has to switch
locales on the fly, and they generally don't expect things like open()
to be affected by the locale!

> I don't know if fopen() should implement encoding conversion or not.
> However, if not, each application software will have to convert UTF-8
> from/to locale-encoding.
> 
> UTF-8 is a mere one of encodings which are supported by locale.

The only sane combination of things is to use locale-dependent
encodings for interchange only.  Getting it into Unicode as soon as
possible is the only sane way to deal with it.  I say that as a
non-English-speaking European, who has a fairly large body of things
in ISO 8859-1...

Yes, it's a pain.  However, at least it will hopefully be like banging
your head against the wall: it feels really good when it stops.  If we
do this right this will be the last time we have to bang our heads
against the wall like this.

        -hpa

-- 
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to