[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re[2]: encoding of /etc/passwd



Followup to:  <200111031530.fA3FUPv29163@xxxxxxxxxxxxxxxxx>
By author:    Nerijus Baliunas <nerijus@xxxxxxxxxxxxxxxxxxxxx>
In newsgroup: linux.utf8
> 
> HPA> 
> HPA> In practice, as all of this painfully illustrates, is that multiple
> HPA> encodings in anything but an isolated environment is ultimately
> HPA> futile.  Whereas data in a lot of contexts can be labelled, stuff that
> HPA> is "around the system in general" -- may it be usernames, filenames,
> HPA> /etc/passwd, etc, are ultimately have to be encoded in the encoding
> HPA> specified by the system default locale, and the goal is for that to
> HPA> become UTF-8.
> 
> Excuse me, what a mess that would create! How would you know which encoding
> /etc/passwd is in? What if you have both Japanese and Russian users on
> your system? UTF-8 is the only candidate. You can use iconv to convert
> user's input to UTF-8.
> 

I told you... it has to be in the *system default* character
set/locale.  In practice, UTF-8 is the only choice for multilingual
support, but there is a fair number of systems which currently use
ISO-8859-1.

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