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







_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to