bug-coreutils
[Top][All Lists]
Advanced

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

md5sum errors on DOS formatted text files containing MD5 sums


From: Ralph Peters
Subject: md5sum errors on DOS formatted text files containing MD5 sums
Date: Thu, 04 Nov 2004 11:05:29 +0100
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)

Hi there,

When you use md5sum to check some file (e.g. msdosformattedfile.md5), I have some problems when the file is a DOS text file.

$ md5sum -c msdosformattedfile.md5
: No such file or directory
: FAILED open or read
: No such file or directory
: FAILED open or read
: No such file or directory
: FAILED open or read
etc. etc. etc.

When I copy the contents of the file using some text editor into a newly created (Unix-formatted?) file, the output is correct.

$ md5sum -c newfile.md5
file1.dat: OK
file2.dat: OK
file3.dat: OK
file4.dat: OK
etc. etc. etc.

I'm  using version:
md5sum (coreutils) 5.2.1
Written by Ulrich Drepper and Scott Miller.

Probably some problems with linefeed characters, I don't know.

Three years ago, Mark Lehrer already mentioned the same problem on http://lists.gnu.org/archive/html/bug-textutils/2001-03/msg00028.html

"Obviously, a Unix expert could strip off the line feed with dos2unix or 
equivalent, but a lot of relatively new GNU/Linux users have trouble with this.  I 
am tired of dealing with it, and I don't like to
see users include a DOS formatted and Unix formatted file with the same contents... 
it's silly."

Hope you can solve this :-). Thanks in advance!

see you later,
Ralph









reply via email to

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