bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49983: grep-3.6.27-20b4 tests fail on Cygwin


From: Gary Johnson
Subject: bug#49983: grep-3.6.27-20b4 tests fail on Cygwin
Date: Tue, 10 Aug 2021 16:21:45 -0700
User-agent: Mutt/1.5.20 (2009-06-14)

On 2021-08-10, Paul Eggert wrote:
> Here is a shell transcript on my platform. Can you compare it to what
> happens on your platform? I am guessing that the first 'echo $?'
> outputs something different but would like to know what it is. Plus
> any other differences.
> 
> $ export LC_ALL=en_US.UTF-8
> $ s_pair=$(printf '\360\220\220\205')
> $ printf '%s\n' "$s_pair" > in
> $ src/grep --file=in in >out
> $ echo $?
> 0
> $ od -t o1 in
> 0000000 360 220 220 205 012
> 0000005
> $ cmp in out
> $ echo $?
> 0

This is a pretty drastic difference.  I don't think I missed
anything, though.

$ export LC_ALL=en_US.UTF-8
$ s_pair=$(printf '\360\220\220\205')
$ printf '%s\n' "$s_pair" > in
$ src/grep --file=in in >out
$ echo $?
1
$ od -t o1 in
0000000 360 220 220 205 012
0000005
$ cmp in out
cmp: EOF on out which is empty
$ echo $?
1

Regards,
Gary






reply via email to

[Prev in Thread] Current Thread [Next in Thread]