GNU bug report logs - #18754
tests/t0251-gpt-unicode.sh depends on C.UTF-8 locale

Previous Next

Package: parted;

Reported by: Adam Sampson <ats <at> offog.org>

Date: Fri, 17 Oct 2014 19:08:02 UTC

Severity: normal

To reply to this bug, email your comments to 18754 AT debbugs.gnu.org.

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-parted <at> gnu.org:
bug#18754; Package parted. (Fri, 17 Oct 2014 19:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Adam Sampson <ats <at> offog.org>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Fri, 17 Oct 2014 19:08:02 GMT) Full text and rfc822 format available.

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

From: Adam Sampson <ats <at> offog.org>
To: bug-parted <at> gnu.org
Subject: tests/t0251-gpt-unicode.sh depends on C.UTF-8 locale
Date: Fri, 17 Oct 2014 20:07:16 +0100
Hi parted maintainers,

In parted 3.2, tests/t0251-gpt-unicode.sh needs the C.UTF-8 locale.
However, this isn't provided by stock glibc, and it's not available on
all systems (only ones like Debian where they've patched it in).

I guess the test only really needs *some* UTF-8 locale, so a potential
fix would be to grep the output of "locale -a" for a UTF-8 locale to
use -- and not run the test at all if there isn't one.

Thanks,

-- 
Adam Sampson <ats <at> offog.org>                         <http://offog.org/>




Information forwarded to bug-parted <at> gnu.org:
bug#18754; Package parted. (Fri, 17 Oct 2014 21:23:01 GMT) Full text and rfc822 format available.

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

From: "Brian C. Lane" <bcl <at> redhat.com>
To: Adam Sampson <ats <at> offog.org>
Cc: 18754 <at> debbugs.gnu.org
Subject: Re: bug#18754: tests/t0251-gpt-unicode.sh depends on C.UTF-8 locale
Date: Fri, 17 Oct 2014 14:21:59 -0700
On Fri, Oct 17, 2014 at 08:07:16PM +0100, Adam Sampson wrote:
> Hi parted maintainers,
> 
> In parted 3.2, tests/t0251-gpt-unicode.sh needs the C.UTF-8 locale.
> However, this isn't provided by stock glibc, and it's not available on
> all systems (only ones like Debian where they've patched it in).
> 
> I guess the test only really needs *some* UTF-8 locale, so a potential
> fix would be to grep the output of "locale -a" for a UTF-8 locale to
> use -- and not run the test at all if there isn't one.

I have a patch to fix this by trying en_US.UTF-8 first and then C.UTF-8
if that doesn't exist.

http://lists.alioth.debian.org/pipermail/parted-devel/2014-July/004568.html

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)




This bug report was last modified 10 years and 246 days ago.

Previous Next


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