bug-coreutils
[Top][All Lists]
Advanced

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

md5sum and binary vs. text


From: Eric Blake
Subject: md5sum and binary vs. text
Date: Wed, 25 Mar 2009 06:42:16 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I really hate the fact that md5sum and friends output * for binary files,
and blank for text files, when used on cygwin or other platforms where
O_TEXT matters.  This poor choice of defaults makes 'make
sc_immutable_NEWS' fail, because md5sum outputs:

fa6cba1740b3f385520c1b54d90859ca *-

and the extra * breaks the check.  I'd really like to switch md5sum and
friends to match Linux output when O_BINARY, and add a different marker
character (but what?) when summing a file in O_TEXT mode, since generally
you WANT binary mode to be the default.  Thoughts?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknKJqgACgkQ84KuGfSFAYD1QwCgpluiK23NOPJTwdWGQvraKfOb
+zsAoKADRjTGZU+VqAzfJH+6IhXmpuuN
=AIzY
-----END PGP SIGNATURE-----




reply via email to

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