From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: Guix locales on native distro's Date: Sun, 27 Aug 2017 08:13:18 +0200 Message-ID: <20170827061318.GA29984@thebird.nl> References: <20170826113808.GA28741@lario> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlqpv-0006AN-HC for guix-devel@gnu.org; Sun, 27 Aug 2017 02:14:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlqps-0001XD-AK for guix-devel@gnu.org; Sun, 27 Aug 2017 02:14:19 -0400 Received: from mail.thebird.nl ([95.154.246.10]:37214) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlqps-0001WX-3c for guix-devel@gnu.org; Sun, 27 Aug 2017 02:14:16 -0400 Content-Disposition: inline In-Reply-To: <20170826113808.GA28741@lario> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pjotr Prins Cc: guix-devel@gnu.org I have a laptop which is not showing this problem. The difference is that the tools are linked against glibc 2.22 and 2.23. But, more likely, it could be X. On the laptop I am using Guix's X. Does this make sense? I'll have to check what video is supported on the Debian X computer. I'll try a swap. Pj. On Sat, Aug 26, 2017 at 11:38:09AM +0000, Pjotr Prins wrote: > This used to work: > > https://github.com/pjotrp/guix-notes/blob/master/INSTALL.org#set-locale > > But lately my locales have been giving me grief and I > want to crack it once and for all. I am running Guix tools on a > non-Guix distro. > > First, as per instructions of > > https://www.gnu.org/software/guix/manual/html_node/Application-Setup.html#locales_002dand_002dlocpath, > > I have installed glibc-utf8-locales which set them for glibc-2.25 and set > > export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale > > ls $GUIX_LOCPATH/2.25/ > > en_US.UTF-8 > (etc) > > When I run > > ~/.guix-profile/bin/locale -a > C > POSIX > > Which looks limited, but is probably correct. > > I am running locale, bash, xterm etc. as Guix tools all linked to > glibc-2.25. I am *not* getting the infamous locale errors. After > setting > > export LC_ALL=en_US.UTF-8 > > and > > locale > LANG=en_US.UTF-8 > LC_CTYPE="en_US.UTF-8" > LC_NUMERIC="en_US.UTF-8" > LC_TIME="en_US.UTF-8" > LC_COLLATE="en_US.UTF-8" > LC_MONETARY="en_US.UTF-8" > LC_MESSAGES="en_US.UTF-8" > LC_PAPER="en_US.UTF-8" > LC_NAME="en_US.UTF-8" > LC_ADDRESS="en_US.UTF-8" > LC_TELEPHONE="en_US.UTF-8" > LC_MEASUREMENT="en_US.UTF-8" > LC_IDENTIFICATION="en_US.UTF-8" > LC_ALL=en_US.UTF-8 > > All should be well. But when I read or write an E-mail using mutt or > vim (both linked correctly) I don't get to see UTF8. I don't get > non-ASCII output (Ludo's surname, for example). > > Oh yes, I am running uxterm and bash from Guix with the correct glibc. All > tools are GUIX based except for X itself. E.g. > > ldd `which xterm` > libc.so.6 => /gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25/lib/libc.so.6 (0x00007fad9302f000) > (etc) > > Relevant environment settings: > > GUIX_LOCPATH=/home/wrk/.guix-profile/lib/locale > PATH=/home/wrk/izip/git/opensource/scripts:/home/wrk/.guix-profile/bin:/home/wrk/.guix-profile/sbin:/usr/bin:/bin > SHELL=/home/wrk/.guix-profile/bin/bash > TERM=xterm > TERMINAL=guixterm > XTERM=xterm > XTERM_LOCALE=en_US.UTF-8 > XTERM_SHELL=/bin/bash > XTERM_VERSION='XTerm(322)' > > where /bin/bash actually points to a Guix bash. > > What is it I am missing? > > Pj. > --