From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B72B21381F3 for ; Tue, 6 Aug 2013 15:14:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94D90E0C13; Tue, 6 Aug 2013 15:14:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7DC34E0AED for ; Tue, 6 Aug 2013 15:14:01 +0000 (UTC) Received: from mail-oa0-x234.google.com (mail-oa0-x234.google.com [IPv6:2607:f8b0:4003:c02::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id A07CE33E943 for ; Tue, 6 Aug 2013 15:14:00 +0000 (UTC) Received: by mail-oa0-f52.google.com with SMTP id n12so938973oag.39 for ; Tue, 06 Aug 2013 08:13:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FA7ovogOdSpRiwkgY7ShEz2OAGfm5RIP88zUU2fcsVE=; b=GFr5traQA1YaU6oU0gT01/CGu8MXMLv/alrs6Pp9PUBxwgoCLX2ArhmW+EFnl4UtBs JLwwPzz08jDLB9qeIhQbgbHi8zQghZalzPyd3dp1X9QqopcX2PumKtEqRpb7UpMe4vEH 8fLAa8u62hThy/fPdW5kT5mgd2Pgl6QyoX3r16a8BQlzJ5PVR/acJVQVyFnwuykQnqKA j6Hcvqf/YhK+k7Om2oHU+l2Sq5Bkj03Wpqh6kMyPq6etWpCEx86JGv/ZQvLYzUVLbkVT zUzdycV6h/mjdCXF2Oxk6AfhHh1dYcmPc5QQgndd6M2mnI49OldX6Es/ynnZnH6gxUqq q6rw== 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 X-Received: by 10.50.55.73 with SMTP id q9mr170341igp.47.1375802038982; Tue, 06 Aug 2013 08:13:58 -0700 (PDT) Received: by 10.64.165.34 with HTTP; Tue, 6 Aug 2013 08:13:58 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Aug 2013 11:13:58 -0400 Message-ID: Subject: Re: [gentoo-user] export LC_CTYPE=en_US.UTF-8 From: Mike Gilbert To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: b0b7e9c2-86b3-478f-b07a-06def24ebfb1 X-Archives-Hash: 33559588dd9922730f663390a501cff3 On Mon, Aug 5, 2013 at 6:52 PM, Chris Stankevitz wrote: > On Mon, Aug 5, 2013 at 11:53 AM, Mike Gilbert wrote: >> The handbook documents setting a system-wide default locale. You >> generally do this by setting the LANG variable in >> /etc/conf.d/02locale. >> >> http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=8#doc_chap3_sect3 > > Mike, > > Thank you for your help. I attempted to follow these instructions and > ran into three problems. Can you please confirm the fixes I employed > to deal with each of these issues: > I think the other responses in the thread have this covered, but I will respond anyway. > 1. The handbook suggests I should modify the file /etc/env.d/02locale, > but that file does not exist on my system. RESOLUTION: create the > file > Correct. This file can also be created by using eselect locale. > 2. The handbook suggests I should add this line to > /etc/env.d/02locale: 'LANG="de_DE.UTF-8"', but I do not speak the > language "DE". RESOLUTION: type instead 'LANG="en_US.UTF-8"' to match > /etc/locale.gen > Right, the de_DE is just an example. You should select a language/country that matches your lingual ability. :-) > 3. The handbook suggests that I should add this line to > /etc/env.d/02locale: 'LC_COLLATE="C"', but I do not know if they are > again talking about the language "DE". RESOLUTION: I assumed > LC_COLLATE=C refers to english and added the line without > modification. > LC_COLLATE specifies how to sort text strings. Setting it to "C" indicates that you want to sort strings based on the binary (ASCII) value of their characters. Leaving LC_COLLATE unset will cause strings to be sorted according to the normal rules associated with your locale. For example, given the following strings: cat Dog With LC_COLLATE="C", they are sorted like this, since the binary value of "D" (66) is less than the value of "c" (99). Dog cat With LC_COLLATE="en_US.UTF-8", they are sorted like this, since "c" comes before "D" in the alphabet. cat Dog