tags 29802 moreinfo
close 29802
stop
(triaging old bugs)
On 2017-12-21 9:33 a.m., Pádraig Brady wrote:
On 21/12/17 08:40, PD wrote:
# 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
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 i
Uniq *sometimes* fails to combine lines containing a null character:
# uniq --version
uniq (GNU coreutils) 8.4
# Count duplicate text lines:
# printf "\n\x00\n\x00\n" | cat -e | uniq -c
1 $
2 ^@$
# Count duplicate binary lines:
# printf "\x00\n\x00\n\n" | uniq -c | cat -e