Package: diffutils
Version: 1:3.5-3
Severity: important

Dear Maintainer,
after upgrading to Stretch, cmp -b output is wrong - if the files are
different, the first different byte is always printed as 12 ^J. This is a
major bug in such a simple utility. cmp -b -l works correctly.

$ echo 1 >one
$ echo 2 >two
$ cmp -b one two
one two differ: byte 1, line 1 is  12 ^J  62 2
$ cmp -b -l one two
1  61 1     62 2

It's OK in Jessie or Wheezy:
$ echo 1 > one
$ echo 2 >two
$ cmp -b one two
one two differ: byte 1, line 1 is  61 1  62 2
$ cmp -b -l one two
1  61 1     62 2


Sometimes, the 2nd byte is messed up too:
# cmp -b /root/random230m.bin /mnt/random230m.bin
/root/random230m.bin /mnt/random230m.bin differ: byte 36882317, line 143981 is  
12 ^J 333 M-[

# cmp -b /root/random230m.bin /mnt/random230m.bin
/root/random230m.bin /mnt/random230m.bin differ: byte 85995009, line 336284 is  
12 ^J 327 M-W

-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 4.12.0-rc5+ (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages diffutils depends on:
ii  libc6  2.24-11+deb9u1

diffutils recommends no packages.

Versions of packages diffutils suggests:
pn  diffutils-doc  <none>
pn  wdiff          <none>

-- debconf-show failed

Reply via email to