Package: jacksum Version: 1.7.0-2 Severity: normal
*** /tmp/reportbug-jacksum-20090205-14781-RuopgH Subject: jacksum: incorrect checksum generated from stdin Package: jacksum Version: 1.7.0-2 Severity: normal When reading from standard input, Jacksum assumes the existence of a newline at the end of the input even if one is not present. Consider the following: zpal...@thirtyseven:~$ echo "test" | md5sum d8e8fca2dc0f896fd7cb4cb0031ba249 - zpal...@thirtyseven:~$ echo "test" | jacksum -a md5 d8e8fca2dc0f896fd7cb4cb0031ba249 zpal...@thirtyseven:~$ echo -n "test" | md5sum 098f6bcd4621d373cade4e832627b4f6 - zpal...@thirtyseven:~$ echo -n "test" | jacksum -a md5 d8e8fca2dc0f896fd7cb4cb0031ba249 This appears to be independent of the algorithm in question; the same problem arose when using CRC8 and SHA1. This problem is not present when reading from a file: zpal...@thirtyseven:~$ echo -n "test" > ztemp zpal...@thirtyseven:~$ jacksum -a md5 ztemp 098f6bcd4621d373cade4e832627b4f6 ztemp -- System Information: Debian Release: 5.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages jacksum depends on: ii gij-4.1 [java2-runtime] 4.1.1-20 The GNU Java bytecode interpreter ii java-gcj-compat [java2-runtim 1.0.78-2 Java runtime environment using GIJ ii openjdk-6-jre [java2-runtime] 6b11-9 OpenJDK Java runtime, using Hotspo ii sun-java5-jre [java2-runtime] 1.5.0-16-3 Sun Java(TM) Runtime Environment ( ii sun-java6-jre [java2-runtime] 6-07-4 Sun Java(TM) Runtime Environment ( jacksum recommends no packages. Versions of packages jacksum suggests: ii gij [java-virtual-machine] 4:4.3.2-2 The GNU Java bytecode interpreter ii gij-4.1 [java-virtual-machine 4.1.1-20 The GNU Java bytecode interpreter ii gij-4.3 [java-virtual-machine 4.3.2-2 The GNU Java bytecode interpreter ii java-gcj-compat [java-virtual 1.0.78-2 Java runtime environment using GIJ ii java-gcj-compat-headless [jav 1.0.78-2 Java runtime environment using GIJ ii openjdk-6-jre-headless [java- 6b11-9 OpenJDK Java runtime, using Hotspo ii sun-java5-jre [java-virtual-m 1.5.0-16-3 Sun Java(TM) Runtime Environment ( ii sun-java6-jre [java-virtual-m 6-07-4 Sun Java(TM) Runtime Environment ( -- no debconf information -- System Information: Debian Release: 5.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages jacksum depends on: ii gij-4.1 [java2-runtime] 4.1.1-20 The GNU Java bytecode interpreter ii java-gcj-compat [java2-runtim 1.0.78-2 Java runtime environment using GIJ ii openjdk-6-jre [java2-runtime] 6b11-9 OpenJDK Java runtime, using Hotspo ii sun-java5-jre [java2-runtime] 1.5.0-16-3 Sun Java(TM) Runtime Environment ( ii sun-java6-jre [java2-runtime] 6-07-4 Sun Java(TM) Runtime Environment ( jacksum recommends no packages. Versions of packages jacksum suggests: ii gij [java-virtual-machine] 4:4.3.2-2 The GNU Java bytecode interpreter ii gij-4.1 [java-virtual-machine 4.1.1-20 The GNU Java bytecode interpreter ii gij-4.3 [java-virtual-machine 4.3.2-2 The GNU Java bytecode interpreter ii java-gcj-compat [java-virtual 1.0.78-2 Java runtime environment using GIJ ii java-gcj-compat-headless [jav 1.0.78-2 Java runtime environment using GIJ ii openjdk-6-jre-headless [java- 6b11-9 OpenJDK Java runtime, using Hotspo ii sun-java5-jre [java-virtual-m 1.5.0-16-3 Sun Java(TM) Runtime Environment ( ii sun-java6-jre [java-virtual-m 6-07-4 Sun Java(TM) Runtime Environment ( -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org