GNU bug report logs - #37688
"guix system reconfigure" doesn't work with LC_ALL=C - and locale problems

Previous Next

Package: guix;

Reported by: Danny Milosavljevic <dannym <at> scratchpost.org>

Date: Wed, 9 Oct 2019 22:20:01 UTC

Severity: normal

Tags: fixed

Merged with 37662

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37688 in the body.
You can then email your comments to 37688 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#37688; Package guix. (Wed, 09 Oct 2019 22:20:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Danny Milosavljevic <dannym <at> scratchpost.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 09 Oct 2019 22:20:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: <bug-guix <at> gnu.org>
Subject: "guix system reconfigure" doesn't work with LC_ALL=C - and locale
 problems
Date: Thu, 10 Oct 2019 00:18:56 +0200
[Message part 1 (text/plain, inline)]
Because of the locale problems every time there is a merge, I've tried to upgrade
as follows:

sudo -i
LC_ALL=C guix system reconfigure /etc/config.scm

downloading from https://ci.guix.gnu.org/nar/lzip/532l4zja85y9c69i0l0bwnsxx98gpzdw-nss-certs-3.45...
 nss-certs-3.45  135KiB                                                     104.5MiB/s 00:00 [########          ]  47.4%Backtrace:
           3 (apply-smob/1 #<catch-closure 1083000>)
In ice-9/boot-9.scm:
    705:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
    619:8  1 (_ #(#(#<directory (guile-user) 10e6140>)))
In guix/ui.scm:
  1692:12  0 (run-guix-command _ . _)

guix/ui.scm:1692:12: In procedure run-guix-command:
Throw to key `encoding-error' with args `("scm_to_stringn" "cannot convert wide string to output locale" 84 #f #f)'.

Can we please do something about these encoding problems once and for all?

Most have standardized on UTF-8 in like 2000, so why does this keep happening?

Also, what is it that changes the locale database format so fundamentally each
and every time that it can't be used any more?  Human culture doesn't change that
quickly :P

The reason I set LC_ALL=C is because with my usual language setting I cannot see
where the log file is when a build failure occurs:

>Das Erstellungsprotokoll kann unter â eingesehen werden.

                                     ^ You got this E-Mail right.  That's what it said.

That is very bad usability.

If there's an official way to make these upgrades not break (automatically update
in a cron job, say), is it documented in the manual how to do that?

On the other hand:

$ LC_ALL=de_AT.utf8 guix package -u . # With broken locales.
[...]
>Das Erstellungsprotokoll kann unter â eingesehen werden.

                                     ^ You got this E-Mail right.  That's what it said.

$ LC_ALL=C guix package -u . # With broken locales.
[...]
View build log at '/var/log/guix/drvs/3y/jqbvjchd344qwg62x0gbj95dx0vfk9-simple-scan-3.24.1.drv.bz2'.

There it works.

Furthermore, I cannot log in on the Linux console.  It doesn't ask for the
password and doesn't let me log in either.  (I wanted to see whether the
text console does the same--well, I guess we won't know)
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#37688; Package guix. (Wed, 09 Oct 2019 22:26:01 GMT) Full text and rfc822 format available.

Message #8 received at 37688 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: 37688 <at> debbugs.gnu.org
Subject: Re: bug#37688: "guix system reconfigure" doesn't work with LC_ALL=C
 - and locale problems
Date: Thu, 10 Oct 2019 00:24:52 +0200
[Message part 1 (text/plain, inline)]
After retrying "reconfigure" a few more times, it did work.  Now I rebooted and
now I can also log into the Linux console again.  Locale problems seem to be
gone away--for now.

Note that I report this stuff because it's a general problem all our users see
(and probably never report--they just delete Guix instead).
[Message part 2 (application/pgp-signature, inline)]

Merged 37662 37688. Request was from Tobias Geerinckx-Rice <me <at> tobias.gr> to control <at> debbugs.gnu.org. (Thu, 10 Oct 2019 14:04:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 21 Oct 2019 12:35:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 37662 <at> debbugs.gnu.org and Josh Holland <josh <at> inv.alid.pw> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 21 Oct 2019 12:35:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 19 Nov 2019 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 153 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.