GNU bug report logs - #46038
Tests (tests/channels.scm) assume UTF-8 locale

Previous Next

Package: guix;

Reported by: Vagrant Cascadian <vagrant <at> reproducible-builds.org>

Date: Fri, 22 Jan 2021 16:58:01 UTC

Severity: normal

Merged with 50123, 50512

Full log


View this message in rfc822 format

From: Ludovic Courtès <ludo <at> gnu.org>
To: Vagrant Cascadian <vagrant <at> reproducible-builds.org>
Cc: 46038 <at> debbugs.gnu.org
Subject: bug#46038: guix 1.3.0rc1 test failure: channels-news, one entry
Date: Tue, 04 May 2021 21:53:46 +0200
Hi Vagrant,

Vagrant Cascadian <vagrant <at> reproducible-builds.org> skribis:

> On 2021-01-22, Vagrant Cascadian wrote:
>> I've uploaded guix 1.2.0 built against guile-2.2 to Debian, and while it
>> builds fine on the official buildd.debian.org infrastructure, on amd64
>> and arm64 the "channel-news, one entry" test from tests/channels.scm
>> fails on tests.reproducible-builds.org.
>>
>> There are likely a few differences in the two build environments,
>> possibly including network access.
>>
>> Does the "channel-news, one entry" test indirectly depend on network or
>> bootstrap binaries?
>>
>> Could a difference in locale related variables affect the result of the
>> test (e.g. LANGUAGE=en:en_US vs. LANGUAGE unset, LC_ALL unset
>> vs. LC_ALL=C or LC_ALL=C.UTF-8)?
>>
>>   https://tests.reproducible-builds.org/debian/rb-pkg/experimental/amd64/guix.html
>
> Still basically the same story with 1.3.0rc1, in some cases this test
> fails, but I haven't consistently figured out what triggers it.
>
>
>> test-name: channel-news, one entry
>> location: /build/1st/guix-1.2.0/tests/channels.scm:324
>> source:

[...]

>> +              (lset= equal?
>> +                     (map channel-news-entry-title
>> +                          (channel-news-for-commit channel commit5))
>> +                     '((("en" . "Another file!"))
>> +                       (("en" . "Old news.") ("eo" . "Malnova?oj."))))

The culprit is right here: it should read “Malnovaĵoj”, but there’s a
question mark instead of ‘ĵ’.

Could it be that you’re not running tests in a UTF-8 locale?

Thanks,
Ludo’.




This bug report was last modified 3 years and 200 days ago.

Previous Next


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