From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#28168: rofi - Failed to set locale and relink messages Date: Wed, 23 Aug 2017 23:16:36 +0200 Message-ID: <87efs2kmrv.fsf@gnu.org> References: <87k21wasdb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkd1L-0008OD-M7 for bug-guix@gnu.org; Wed, 23 Aug 2017 17:17:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkd1K-0005rb-Im for bug-guix@gnu.org; Wed, 23 Aug 2017 17:17:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43111) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkd1K-0005rU-Ex for bug-guix@gnu.org; Wed, 23 Aug 2017 17:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dkd1K-0005HU-7E for bug-guix@gnu.org; Wed, 23 Aug 2017 17:17:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Fredrik Salomonsson's message of "Tue, 22 Aug 2017 22:23:11 -0700") 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: Fredrik Salomonsson Cc: 28168@debbugs.gnu.org Hi Fredrik, Fredrik Salomonsson skribis: >> >> > Failed to set locale. >> > >> > then it exits. >> > >> > I've set: >> > GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale >> > LANG=3Den_US.UTF-8 >> > >> > Using glibc-locales >> >> Does setting LC_ALL instead of LANG help? The LC_* variables take >> precedence over LANG. > > setting LC_ALL didn't work. Same error. > > Did a strace on it just to see what's going on. > Here's the last part just before it exits > >> open("/run/current-system/locale/2.25/en_US.UTF-8/LC_IDENTIFICATION", >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) >> open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION", >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) >> open("/run/current-system/locale/2.25/en_US/LC_IDENTIFICATION", >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) >> open("/run/current-system/locale/2.25/en.UTF-8/LC_IDENTIFICATION", >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) >> open("/run/current-system/locale/2.25/en.utf8/LC_IDENTIFICATION", >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) >> open("/run/current-system/locale/2.25/en/LC_IDENTIFICATION", >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) >> write(2, "Failed to set locale.\n", 22) =3D 22 >> exit_group(1) =3D ? >> +++ exited with 1 +++ >> > > It's looking for locale specific things in /run/current-system. Which Arch > doesn't have. Is that a GuixSD specific thing? Don't have GuixSD install= ed > at the moment so cannot check myself. Yes, that=E2=80=99s a GuixSD-specific thing, but if you set GUIX_LOCPATH, t= hen $GUIX_LOCPATH should take precedence. The strace output you sent suggests that GUIX_LOCPATH was unset, wasn=E2=80=99t it? For example, I get: --8<---------------cut here---------------start------------->8--- $ GUIX_LOCPATH=3D/foo strace -e open true --help [...] open("/foo/2.25/en_US.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) =3D -1 E= NOENT (No such file or directory) open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION", O_RDON= LY|O_CLOEXEC) =3D 3 open("/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25/lib/gconv/gcon= v-modules.cache", O_RDONLY) =3D -1 ENOENT (No such file or directory) open("/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25/lib/gconv/gcon= v-modules", O_RDONLY|O_CLOEXEC) =3D 3 open("/foo/2.25/en_US.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) =3D -1 ENOE= NT (No such file or directory) [...] --8<---------------cut here---------------end--------------->8--- HTH, Ludo=E2=80=99.