From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KKUxt-0004c5-KX for garchives@archives.gentoo.org; Sun, 20 Jul 2008 09:12:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5A28E0324; Sun, 20 Jul 2008 09:12:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6D783E0324 for ; Sun, 20 Jul 2008 09:12:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id F2AD7675D2 for ; Sun, 20 Jul 2008 09:12:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.599 X-Spam-Level: X-Spam-Status: No, score=-3.599 required=5.5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OZhrulgdCg4q for ; Sun, 20 Jul 2008 09:12:16 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id DF0AC676AD for ; Sun, 20 Jul 2008 09:12:14 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KKUxa-0003sN-O6 for gentoo-user@gentoo.org; Sun, 20 Jul 2008 09:12:06 +0000 Received: from apn-77-112-123-233.gprs.plus.pl ([77.112.123.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jul 2008 09:12:06 +0000 Received: from public by apn-77-112-123-233.gprs.plus.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jul 2008 09:12:06 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Miernik Subject: [gentoo-user] Re: Warning: locale not supported by Xlib, locale set to C Date: Sun, 20 Jul 2008 11:15:06 +0200 Message-ID: <20080720091506.24A0.0.NOFFLE@turbacz.local> References: <20080719183723.2115.0.NOFFLE@turbacz.local> <200807192259.29027.dirk.heinrichs@online.de> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: apn-77-112-123-233.gprs.plus.pl X-Archive: encrypt=none User-Agent: tin/1.9.3-20080506 ("Dalintober") (UNIX) (Linux/2.6.25-2-686 (i686)) Sender: news 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 X-Archives-Salt: 8e095640-b136-4b97-b9ed-23f9114c62e7 X-Archives-Hash: f7c012e90e687c20e55eac216805068b Dirk Heinrichs wrote: >> miernik@przehyba ~ $ locale >> LANG=en_DK.UTF-8 >> miernik@przehyba ~ $ locale -a >> en_DK.utf8 > > And you don't see the difference? But... przehyba ~ # cat /usr/share/i18n/SUPPORTED | grep en | grep DK en_DK.UTF-8 UTF-8 en_DK ISO-8859-1 przehyba ~ # So why 'locale -a' tells me that the available locale has "utf8" at the end, while the file in /usr/share/i18n/ tells me its capital leters "UTF-8"? And all documentation I can remember tells me to use ".UTF-8", I've never in my life seen ".utf8" before, I use locales with ".UTF-8" ending on Debian since ages, why here is this strange lowercase "utf8" in one place, and how did it happen to get there? http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=6 tells to use capital "UTF-8" http://www.gentoo.org/doc/en/utf-8.xml shows that 'locale -a' should output capital "UTF-8" However I still don't know how to solve the problem, I changed the text in /etc/env.d/02locale to "en_DK.utf8", then run env-update && source /etc/profile and rebooted the machine after that just to be sure, but that didn't fix the problem - UTF-8 files don't work when 'cat', and starting an xterm still shows "Warning: locale not supported by Xlib, locale set to C". Only now "locale" command shows the lowercase version. I did read the above URL's, and http://www.gentoo.org/doc/en/guide-localization.xml and I am out of ideas. What a mess... and I didn't ever before anywhere enter ".utf8" ending in the locale while installing this system, nor in my life, so it's not me who messed it up! I did how all the manuals showed - uppercase .UTF-8 Is there any hope for me, or should I reinstall Gentoo from scratch, to a blank disk, and pray that my locales will work after that? However I'm sceptical that will produce any different result than I have, because I'll probably do everything exactly as I did now. -- Miernik http://miernik.name/