Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jun 2007 09:37:47 -0700 (PDT)
From:      youshi10@u.washington.edu
To:        Stefan Esser <se@FreeBSD.org>
Cc:        freebsd-x11@freebsd.org, Neil Short <neshort@yahoo.com>, freebsd-current@freebsd.org
Subject:   Re: xorg 7.2 & environment variables set in login.conf
Message-ID:  <Pine.LNX.4.43.0706030937470.11679@hymn04.u.washington.edu>
In-Reply-To: <20070603161659.GA50832@Gatekeeper.FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 3 Jun 2007, Stefan Esser wrote:

> On 2007-06-03 07:38 -0700, Neil Short <neshort@yahoo.com> wrote:
>> How do you export those variables successfully in
>> ~/.xsession? It still doesn't help with me.
>>
>> check this out:
>>
>>  $ locale
>> LANG=en_US
>
> This is not a valid locale! You have a choice between:
>
> 	en_US.ISO8859-1
> 	en_US.ISO8859-15
> 	en_US.US-ASCII
> 	en_US.UTF-8
>
> [...]
>> $ echo $LC_ALL
>> en_US
>> $ perl
>> perl: warning: Setting locale failed.
>> perl: warning: Please check that your locale settings:
>>         LC_ALL = (unset),
>>         LANG = "en_US"
>>     are supported and installed on your system.
>> perl: warning: Falling back to the standard locale ("C").
>
> Yes, and perl tells you, that en_US just isn't specific enough
> for its needs ...
>
> It's up to you whether you prefer en_US.US-ASCII, en_US.ISO8859-1,
> or en_US.UTF-8 (e.g. depending on whether you at least occasionally
> work with foreign language texts).
>
> Regards, STefan

Stefan's absolutely right. What I would do is use en_US.UTF-8, because it's unicode, but depending on your platform and how much memory you have, representing characters in 2 bytes (unicode) vs 1 byte (ASCII/ISO charsets), might not be such a hip idea (thinking embedded, low memory machines)...

-Garrett




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.43.0706030937470.11679>