From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: locale warning and postgresql Date: Mon, 28 Nov 2016 14:02:36 +0000 Message-ID: <87eg1vitxf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBMX7-0000Mr-5J for help-guix@gnu.org; Mon, 28 Nov 2016 09:03:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBMX3-0000L1-VI for help-guix@gnu.org; Mon, 28 Nov 2016 09:03:49 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:37648) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBMX3-0000Ks-On for help-guix@gnu.org; Mon, 28 Nov 2016 09:03:45 -0500 Received: by mail-wm0-f43.google.com with SMTP id t79so155596816wmt.0 for ; Mon, 28 Nov 2016 06:03:45 -0800 (PST) Received: from localhost (91.109.241.36.static-uk.cryptolayer.com. [91.109.241.36]) by smtp.googlemail.com with ESMTPSA id y4sm62730114wjp.0.2016.11.28.06.02.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Nov 2016 06:02:42 -0800 (PST) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix Hello, I have always had trouble with my locale after installing guix on Arch Linux (with zsh and a basic window manager, bspwm). I have set GUIX_LOCPATH in ~/.zshenv and it appears correct in my shell. The system-wide locale looks right. When I install postgresql it gives the usual "warning: failed to install locale: Invalid argument". When I try to initialise a database cluster, passing the locale doesn't work. Does anyone using Arch Linux and a basic WM know which file to put GUIX_LOCPATH in so that the warning goes away? How can I find out what guix thinks its locale is or what are available? Is there a way to use initdb even though there is a locale warning? Shell experiments: $ 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= $ echo $GUIX_LOCPATH /home/myles/.guix-profile/lib/locale $ guix package -i postgresql warning: failed to install locale: Invalid argument The following package will be upgraded: postgresql 9.5.3 -> 9.5.3 /gnu/store/sfgg20a7jnwfisajsvqdijjm2zj905az-postgresql-9.5.3 nothing to be done guix package -i postgresql 7.56s user 0.22s system 107% cpu 7.213 total $ which initdb /home/myles/.guix-profile/bin/initdb $ initdb --locale en_GB.UTF-8 -E UTF8 -D '/home/myles/pgdata-guix' The files belonging to this database system will be owned by user "myles". This user must also own the server process. initdb: invalid locale name "en_GB.UTF-8" $ initdb --locale en_GB -E UTF8 -D '/home/myles/pgdata-guix' The files belonging to this database system will be owned by user "myles". This user must also own the server process. initdb: invalid locale name "en_GB" $ initdb -E UTF8 -D '/home/myles/pgdata-guix' The files belonging to this database system will be owned by user "myles". This user must also own the server process. initdb: invalid locale settings; check LANG and LC_* environment variables Thanks, Myles