Followup to:  <[EMAIL PROTECTED]>
By author:    Tomohiro KUBOTA <[EMAIL PROTECTED]>
In newsgroup: linux.utf8
> 
> At Tue, 26 Jun 2001 22:11:06 +0200 (CEST),
> Bruno Haible <[EMAIL PROTECTED]> wrote:
> 
> >  - Newbies should have only a single variable to set in their
> >    $HOME/.profile, not dozens.
> 
> Yes.  This is the point.  When users set "LANG" vairable, they
> expect all softwares to obey the variable.
> 

The issue is, however, what that does mean?  In particular, strings in
the filesystem are usually in the system-wide encoding scheme, not
what that particular user happens to be processing at the time.

The locale system was unfortunately misdesigned.  There are very few
reasonable answers when it comes to deal with things like this.  It
does, however, seem pretty clear that fopen() and friends will *not*
convert the character string presented to it, but will treat it as a
string of bytes, period.  POSIX is adamant about 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