On Wed, Oct 26, 2005 at 04:27:44PM +0400, Dmitry V. Levin wrote:
> On Sun, Oct 23, 2005 at 11:07:59AM +0200, Jim Meyering wrote:
> > ** Binary input and output are now implemented more consistently.
> > These changes affect only platforms like MS-DOS that distinguish
> > between binary and text files.
>
> Unfortunately, these changes affect GNU/Linux, too.
>
> [...]
> > md5sum and sha1sum now obey the -b or --binary option, even if
> > standard input is a terminal, and they no longer report files to be
> > binary if they actually read them in text mode.
>
> On GNU/Linux, O_BINARY is 0 and default mode is binary.
> As result, by default a character indicating type is now "*" instead of
> previous " ", and this change breaks third party scripts which relay on
> old md5sum/sha1sum output format.
I'm going to apply attached patch for coreutils packages I maintain.
--
ldv