From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Love Subject: bug#25136: locale confusion Date: Thu, 08 Dec 2016 13:48:38 +0000 Message-ID: <87y3zq7cqx.fsf@pc102091.liv.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEz4N-0006tf-8w for bug-guix@gnu.org; Thu, 08 Dec 2016 08:49:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEz4I-0003u6-6F for bug-guix@gnu.org; Thu, 08 Dec 2016 08:49:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:45479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cEz4I-0003u0-1y for bug-guix@gnu.org; Thu, 08 Dec 2016 08:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cEz4H-0006e0-Rd for bug-guix@gnu.org; Thu, 08 Dec 2016 08:49:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEz43-0006T5-1v for bug-guix@gnu.org; Thu, 08 Dec 2016 08:48:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEz3y-0003oe-1B for bug-guix@gnu.org; Thu, 08 Dec 2016 08:48:47 -0500 Received: from bhsophx.liv.ac.uk ([138.253.100.116]:36312) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cEz3x-0003oN-RG for bug-guix@gnu.org; Thu, 08 Dec 2016 08:48:41 -0500 Received: from bhsophx.liv.ac.uk (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id C419BC0A99 for ; Thu, 8 Dec 2016 13:48:38 +0000 (GMT) Received: from mxg.liv.ac.uk (mxg.liv.ac.uk [138.253.100.62]) by bhsophx.liv.ac.uk (Postfix) with ESMTP id BE510C0A91 for ; Thu, 8 Dec 2016 13:48:38 +0000 (GMT) Received: from mailhubd.liv.ac.uk ([138.253.100.81]) by mxg.liv.ac.uk with esmtp (Exim 4.80.1) (envelope-from ) id 1cEz3u-0000tF-Nm for bug-guix@gnu.org; Thu, 08 Dec 2016 13:48:38 +0000 Received: from localhost ([127.0.0.1] helo=mailhubd.liv.ac.uk) by mailhubd.liv.ac.uk with esmtp (Exim 4.80.1) (envelope-from ) id 1cEz3u-0001WM-Mr for bug-guix@gnu.org; Thu, 08 Dec 2016 13:48:38 +0000 Received: from pc102091.liv.ac.uk ([138.253.102.91] helo=albion) by mailhubd.liv.ac.uk with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84_2) (envelope-from ) id 1cEz3u-0001WE-Hi for bug-guix@gnu.org; Thu, 08 Dec 2016 13:48:38 +0000 Received: from dlove by albion with local (Exim 4.82) (envelope-from ) id 1cEz3u-0006Hs-A5 for bug-guix@gnu.org; Thu, 08 Dec 2016 13:48:38 +0000 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 25136@debbugs.gnu.org I followed the instructions for getting locales working in "(guix)Application Setup" to no effect initially. I'm running over RHEL6, if that's relevant, and I have: $ locale LANG=en_GB.UTF-8 LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL= $ export -p | grep GUIX declare -x GUIX_LOCPATH="/home/dlove/.guix-profile/lib/locale" $ find $GUIX_LOCPATH -name en_GB.UTF-8 /home/dlove/.guix-profile/lib/locale/2.24/en_GB.UTF-8 but saw this (note the warning): $ guix --version warning: failed to install locale: Invalid argument guix (GNU Guix) 20161208.12 Copyright (C) 2016 the Guix authors License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. strace showed it looking in "locale/2.23", not "locale/2.24", despite the environment. "guix" there was from the /usr/local/bin link suggested by the installation instructions. After a "guix package -i guix" (to the same version of guix, but now in .guix-profile), I don't get the warning but I wonder why that should have made a difference and why the environment seems to be ignored.