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

Re: What does it mean 'LANG=C'



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xeno Campanoli wrote:
> I've wondered about that.  Why aren't "modern" systems just
> moving straight to Unicode?

UTF-8 *is* Unicode.  http://en.wikipedia.org/wiki/UTF-8

> Derek Martin wrote:
>> On Sun, Jun 25, 2006 at 08:01:21PM +0700, Surachai Locharoen
>> wrote:
>> 
>>> I just want to know 'LANG=C' what does it mean? Normally, I
>>> see LANG is set to laguage which exist in the real world such
>>> as en, th, fr.
>>> 
>> 
>> The LANG variable sets the user's locale, which tells the
>> system what language and local conventions for things like
>> time, money, numbers, etc. the user prefers to use.  The
>> primary importance of this is to tell the system what character
>> set the user is using (and therefore what characters the user
>> can see on terminals, and such.)
>> 
>> Modern systems are moving to UTF-8 environments, which makes
>> the language part mostly irrelevant; it can display (almost)
>> all characters in all supported languages, regardless of what
>> language the user is using.  However, ancient Unix systems used
>> a locale of 'C', which uses the character set US-ASCII, and
>> sorts things (like directory entries, for example) according to
>> the ASCII sequence of characters. See the man page for locale
>> in seciont 5 of the man pages for details:
>> 
>> $ man 5 locale

- --
Ron Johnson, Jr.
Jefferson LA  USA

Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEnqrqS9HxQb37XmcRAmAUAJ47qDWmB3DVxBeIm45q2ntrYUWqXQCcD33M
n+QLdLAPEbqnoSxB8BYqSmM=
=bn/k
-----END PGP SIGNATURE-----



Reply to: