From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QXG4F-0006sa-29 for garchives@archives.gentoo.org; Thu, 16 Jun 2011 17:09:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04995E0509 for ; Thu, 16 Jun 2011 17:09:15 +0000 (UTC) Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.216.174]) by pigeon.gentoo.org (Postfix) with ESMTP id BBFE71C067 for ; Thu, 16 Jun 2011 16:45:58 +0000 (UTC) Received: by qyk29 with SMTP id 29so40994qyk.19 for ; Thu, 16 Jun 2011 09:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=873EB54k8Vo/5LiZQsghH421jtPB6RPBbYGeWD8FOcc=; b=IF2Yg23xNrklmrTH8O2DFd5dL9V0w3J9zxwSp2kwcA9mkyYxgLL1jj3rqOVlrQ8aVg 06bKpcZ1V4ZLg9VST5mC/9n55Y8KskeIDfhnWiy5bvxbZlUyZVrEPMM7DAMBZlqzRAmS bXWz0tT8FJKpkjxXeGTRUVJOI9gYrfcdfFyvY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ls//PFcJMmK1CuH7AIubonUeGceuYQLy2TZft+QDpijEGlweDDHjLKJtLYYOvgZ63k 88/sK1kc5BvWXNLwzSpX9TD03mpBRWFrJmXeQnlaVPbRBGc1jjiRwopKi9vf9EYgkryt Fl5suKaP34i3v+G5h2HGvCX5teVZyLdrIa80E= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.224.218.72 with SMTP id hp8mr1022358qab.78.1308242757821; Thu, 16 Jun 2011 09:45:57 -0700 (PDT) Received: by 10.224.61.14 with HTTP; Thu, 16 Jun 2011 09:45:57 -0700 (PDT) In-Reply-To: References: Date: Thu, 16 Jun 2011 09:45:57 -0700 Message-ID: Subject: Re: [gentoo-user] Re: /etc/locale vs /etc/env.d/02locale? From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 7e15e9dfe2b981a8c591a30d770e4d07 On Thu, Jun 16, 2011 at 9:22 AM, Nikos Chantziaras wrote: > On 06/16/2011 06:45 PM, Mark Knecht wrote: >> >> Is there a simple explanation concerning the difference between the >> two locales I have seen on Gentoo machines? >> >> 1) /etc/locale, as specified in the installation documents >> >> 2) /etc/env.d/02locale as has been discussed on the list recently > > There is no /etc/locale. =C2=A0I assume you mean /etc/locale.gen. I did. thanks. > That one only > contains the locales for glibc. =C2=A0You should not specify env vars the= re. =C2=A0You > only list raw locales. =C2=A0Mine for example has these contents: > > =C2=A0en_US ISO-8859-1 > =C2=A0en_US.UTF-8 UTF-8 > As does mine. > /etc/env.d/02locale is of a different format. =C2=A0It's executed as a sc= ript, so > you set your locale-specific env vars there. =C2=A0You only need LANG act= ually, > and possibly LC_COLLATE. =C2=A0The whole contents of mine: > > =C2=A0LANG=3D"en_US.UTF-8" > =C2=A0LC_COLLATE=3D"C" > I had the first line but not the second which I've added. I think the root of my question is really the (possibly) unfortunately use of the word 'locale' for the glibc stuff. I understand the concept of locales for the system and users, but why does glibc need locales which are possibly different from those in use on a system by users? I can make up reasons, like someone from Japan logs into my server to do work and needs something to use Japanese locales, but he could likely set those up in .bashrc or something. What is glibc doing with them? Thanks, Mark