GNU bug report logs - #50774
guix-install.sh outputs invalid utf-8 characters

Previous Next

Package: guix;

Reported by: "Dhruvin Gandhi" <contact <at> dhruvin.dev>

Date: Fri, 24 Sep 2021 09:22:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

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 50774 in the body.
You can then email your comments to 50774 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#50774; Package guix. (Fri, 24 Sep 2021 09:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Dhruvin Gandhi" <contact <at> dhruvin.dev>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 24 Sep 2021 09:22:02 GMT) Full text and rfc822 format available.

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

From: "Dhruvin Gandhi" <contact <at> dhruvin.dev>
To: bug-guix <at> gnu.org
Subject: guix-install.sh outputs invalid utf-8 characters
Date: Fri, 24 Sep 2021 09:21:28 +0000
I've recently submitted a patch to builds.sr.ht to support guix build
image. While installing guix binary on foreign distro via
guix-install.sh, it appears that the installer outputs invalid utf-8
characters[1].

References:

[1] https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/25167#%3CCEH30J59XCDH.3NMOSL8GGLIRF <at> taiga%3E




Information forwarded to bug-guix <at> gnu.org:
bug#50774; Package guix. (Fri, 24 Sep 2021 10:02:02 GMT) Full text and rfc822 format available.

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

From: Maxime Devos <maximedevos <at> telenet.be>
To: Dhruvin Gandhi <contact <at> dhruvin.dev>, 50774 <at> debbugs.gnu.org
Subject: Re: bug#50774: guix-install.sh outputs invalid utf-8 characters
Date: Fri, 24 Sep 2021 12:01:28 +0200
[Message part 1 (text/plain, inline)]
Dhruvin Gandhi via Bug reports for GNU Guix schreef op vr 24-09-2021 om 09:21 [+0000]:
> I've recently submitted a patch to builds.sr.ht to support guix build
> image. While installing guix binary on foreign distro via
> guix-install.sh, it appears that the installer outputs invalid utf-8
> characters[1].
>
> References:
> 
> [1] https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/25167#%3CCEH30J59XCDH.3NMOSL8GGLIRF <at> taiga%3E

Where is the invalid UTF-8?  Perhaps the � in

(guix-install log)
...
gpg: key 090B11993D9AEBB5: public key "Ludovic Court�s <ludo <at> gnu.org>" imported
...

?

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#50774; Package guix. (Fri, 24 Sep 2021 12:22:01 GMT) Full text and rfc822 format available.

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

From: "Dhruvin Gandhi" <contact <at> dhruvin.dev>
To: "Maxime Devos" <maximedevos <at> telenet.be>, 50774 <at> debbugs.gnu.org
Subject: Re: bug#50774: guix-install.sh outputs invalid utf-8 characters
Date: Fri, 24 Sep 2021 12:21:10 +0000
September 24, 2021 10:01 AM, "Maxime Devos" <maximedevos <at> telenet.be> wrote:

> Dhruvin Gandhi via Bug reports for GNU Guix schreef op vr 24-09-2021 om 09:21 [+0000]:
> 
>> I've recently submitted a patch to builds.sr.ht to support guix build
>> image. While installing guix binary on foreign distro via
>> guix-install.sh, it appears that the installer outputs invalid utf-8
>> characters[1].
>> 
>> References:
>> 
>> [1] https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/25167#<CEH30J59XCDH.3NMOSL8GGLIRF <at> taiga>
> 
> Where is the invalid UTF-8? Perhaps the ? in
> 
> (guix-install log)
> ...
> gpg: key 090B11993D9AEBB5: public key "Ludovic Court?s <ludo <at> gnu.org>" imported
> ...
> 
> ?
> 
> Greetings,
> Maxime.

Hello Maxime,

I ran a build job on builds.sr.ht [1]. Build logs can be found
in artifacts section of the build job [1], i.e. here [2]. I ran
grep -axv '.*' <log.txt> to see which lines are offending and I
only found the one you mentioned above.

References:
[1] https://builds.sr.ht/~dhruvin/job/594887
[2] https://patchouli.sr.ht/builds.sr.ht/artifacts/~dhruvin/594887/ccefd04d43546cb7/log.txt




Information forwarded to bug-guix <at> gnu.org:
bug#50774; Package guix. (Fri, 24 Sep 2021 12:52:02 GMT) Full text and rfc822 format available.

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

From: Maxime Devos <maximedevos <at> telenet.be>
To: Dhruvin Gandhi <contact <at> dhruvin.dev>, 50774 <at> debbugs.gnu.org
Subject: Re: bug#50774: guix-install.sh outputs invalid utf-8 characters
Date: Fri, 24 Sep 2021 14:51:11 +0200
[Message part 1 (text/plain, inline)]
Dhruvin Gandhi schreef op vr 24-09-2021 om 12:21 [+0000]:
> September 24, 2021 10:01 AM, "Maxime Devos" <maximedevos <at> telenet.be> wrote:
> 
> > Dhruvin Gandhi via Bug reports for GNU Guix schreef op vr 24-09-2021 om 09:21 [+0000]:
> > 
> > > I've recently submitted a patch to builds.sr.ht to support guix build
> > > image. While installing guix binary on foreign distro via
> > > guix-install.sh, it appears that the installer outputs invalid utf-8
> > > characters[1].
> > > 
> > > References:
> > > 
> > > [1] https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/25167#<CEH30J59XCDH.3NMOSL8GGLIRF <at> taiga>
> > 
> > Where is the invalid UTF-8? Perhaps the ? in
> > 
> > (guix-install log)
> > ...
> > gpg: key 090B11993D9AEBB5: public key "Ludovic Court?s <ludo <at> gnu.org>" imported
> > ...
> > 
> > ?
> > 
> > Greetings,
> > Maxime.
> 
> Hello Maxime,
> 
> I ran a build job on builds.sr.ht [1]. Build logs can be found
> in artifacts section of the build job [1], i.e. here [2]. I ran
> grep -axv '.*' <log.txt> to see which lines are offending and I
> only found the one you mentioned above.

This seems like a locale issue:

$ env --ignore-environment LC_ALL=en_US.UTF-8 ~/.guix-profile/bin/gpg --dry-run --list-keys Ludovic
> [...]
> uid           [ expired] Ludovic Courtès <ludo <at> gnu.org>
> [...]

$ env --ignore-environment ~/.guix-profile/bin/gpg --dry-run --list-keys Ludovic
> [...]
> uid           [ expired] Ludovic Court�s <ludo <at> gnu.org>
> [...]

Did you set LC_ALL to an UTF-8 locale before running guix-install.sh?
If not, the default ANSI_X3.4-1968 encoding is used, which doesn't support the letter è.

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#50774; Package guix. (Fri, 24 Sep 2021 13:27:01 GMT) Full text and rfc822 format available.

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

From: "Dhruvin Gandhi" <contact <at> dhruvin.dev>
To: "Maxime Devos" <maximedevos <at> telenet.be>, 50774 <at> debbugs.gnu.org
Subject: Re: bug#50774: guix-install.sh outputs invalid utf-8 characters
Date: Fri, 24 Sep 2021 13:26:36 +0000
September 24, 2021 12:51 PM, "Maxime Devos" <maximedevos <at> telenet.be> wrote:

> Dhruvin Gandhi schreef op vr 24-09-2021 om 12:21 [+0000]:
> 
>> September 24, 2021 10:01 AM, "Maxime Devos" <maximedevos <at> telenet.be> wrote:
>> 
>> Dhruvin Gandhi via Bug reports for GNU Guix schreef op vr 24-09-2021 om 09:21 [+0000]:
>> 
>>> I've recently submitted a patch to builds.sr.ht to support guix build
>>> image. While installing guix binary on foreign distro via
>>> guix-install.sh, it appears that the installer outputs invalid utf-8
>>> characters[1].
>>> 
>>> References:
>>> 
>>> [1] https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/25167#<CEH30J59XCDH.3NMOSL8GGLIRF <at> taiga>
>> 
>> Where is the invalid UTF-8? Perhaps the ? in
>> 
>> (guix-install log)
>> ...
>> gpg: key 090B11993D9AEBB5: public key "Ludovic Court?s <ludo <at> gnu.org>" imported
>> ...
>> 
>> ?
>> 
>> Greetings,
>> Maxime.
>> 
>> Hello Maxime,
>> 
>> I ran a build job on builds.sr.ht [1]. Build logs can be found
>> in artifacts section of the build job [1], i.e. here [2]. I ran
>> grep -axv '.*' <log.txt> to see which lines are offending and I
>> only found the one you mentioned above.
> 
> This seems like a locale issue:
> 
> $ env --ignore-environment LC_ALL=en_US.UTF-8 ~/.guix-profile/bin/gpg --dry-run --list-keys Ludovic
>> [...]
>> uid [ expired] Ludovic Courtès <ludo <at> gnu.org>
>> [...]
> 
> $ env --ignore-environment ~/.guix-profile/bin/gpg --dry-run --list-keys Ludovic
>> [...]
>> uid [ expired] Ludovic Court?s <ludo <at> gnu.org>
>> [...]
> 
> Did you set LC_ALL to an UTF-8 locale before running guix-install.sh?

No

> If not, the default ANSI_X3.4-1968 encoding is used, which doesn't support the letter è.

I think this must be it.

Is defining LC_ALL=en_US.UTF-8 necessary before using the installer? If yes, should we document
it or maybe add it to the installer itself?




Information forwarded to bug-guix <at> gnu.org:
bug#50774; Package guix. (Fri, 24 Sep 2021 13:56:01 GMT) Full text and rfc822 format available.

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

From: Maxime Devos <maximedevos <at> telenet.be>
To: Dhruvin Gandhi <contact <at> dhruvin.dev>, 50774 <at> debbugs.gnu.org
Subject: Re: bug#50774: guix-install.sh outputs invalid utf-8 characters
Date: Fri, 24 Sep 2021 15:55:08 +0200
[Message part 1 (text/plain, inline)]
Dhruvin Gandhi schreef op vr 24-09-2021 om 13:26 [+0000]:
> [...]
> > This seems like a locale issue:
> > 
> > [...]
> > Did you set LC_ALL to an UTF-8 locale before running guix-install.sh?
> 
> No
> 
> > If not, the default ANSI_X3.4-1968 encoding is used, which doesn't support the letter è.
> 
> I think this must be it.
> 
> Is defining LC_ALL=en_US.UTF-8 necessary before using the installer? If yes, should we document
> it or maybe add it to the installer itself?

I don't think it is.  Other locales such as LC_ALL=nl_NL.UTF-8 should work too I think,
and an UTF-8 locale isn't required AFAIK, though an UTF-8 locale appears to be required to
get UTF-8 output from guix-install.

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Tue, 12 Jul 2022 13:39:02 GMT) Full text and rfc822 format available.

Notification sent to "Dhruvin Gandhi" <contact <at> dhruvin.dev>:
bug acknowledged by developer. (Tue, 12 Jul 2022 13:39:02 GMT) Full text and rfc822 format available.

Message #25 received at 50774-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 50774-done <at> debbugs.gnu.org, Dhruvin Gandhi <contact <at> dhruvin.dev>
Subject: Re: bug#50774: guix-install.sh outputs invalid utf-8 characters
Date: Tue, 12 Jul 2022 09:37:55 -0400
Hi,

Maxime Devos <maximedevos <at> telenet.be> writes:

> Dhruvin Gandhi schreef op vr 24-09-2021 om 13:26 [+0000]:
>> [...]
>> > This seems like a locale issue:
>> > 
>> > [...]
>> > Did you set LC_ALL to an UTF-8 locale before running guix-install.sh?
>> 
>> No
>> 
>> > If not, the default ANSI_X3.4-1968 encoding is used, which doesn't support the letter è.
>> 
>> I think this must be it.
>> 
>> Is defining LC_ALL=en_US.UTF-8 necessary before using the installer? If yes, should we document
>> it or maybe add it to the installer itself?
>
> I don't think it is.  Other locales such as LC_ALL=nl_NL.UTF-8 should work too I think,
> and an UTF-8 locale isn't required AFAIK, though an UTF-8 locale appears to be required to
> get UTF-8 output from guix-install.

Closing, as a UTF-8 locale shouldn't be a requirement for using
install.sh.

Thanks for the report!

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 10 Aug 2022 11:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 258 days ago.

Previous Next


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