GNU bug report logs - #29802
"uniq -c" doesn't like counting lines with nulls

Previous Next

Package: coreutils;

Reported by: "PD" <bug-bash.gnu.org <at> pkts.ca>

Date: Thu, 21 Dec 2017 16:29:02 UTC

Severity: normal

Tags: moreinfo

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Pádraig Brady <P <at> draigBrady.com>
To: PD <bug-bash.gnu.org <at> pkts.ca>, 29802 <at> debbugs.gnu.org
Subject: Re: bug#29802: "uniq -c" doesn't like counting lines with nulls
Date: Thu, 21 Dec 2017 16:33:52 +0000
On 21/12/17 08:40, PD wrote:
> ##### Whoops, fail to count duplicate binary lines:
> # printf "\n\x00\n\x00\n" | uniq -c | cat -e
>       1 $
>       1 ^@$
>       1 ^@$

Not reproducible on recent versions.
Might this have been specific to the i18n patch?
I.E. can you reproduce with LC_ALL=C set in the env?

thanks,
Pádraig




This bug report was last modified 6 years and 207 days ago.

Previous Next


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