emacs-bug-tracker
[Top][All Lists]
Advanced

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

[Emacs-bug-tracker] bug#7739: closed (bug in md5sum ?)


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#7739: closed (bug in md5sum ?)
Date: Sun, 10 Apr 2011 03:41:02 +0000

Your message dated Sat, 9 Apr 2011 21:40:43 -0600
with message-id <address@hidden>
and subject line Re: bug#7739: bug in md5sum ?
has caused the GNU bug report #7739,
regarding bug in md5sum ?
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
7739: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7739
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: bug in md5sum ? Date: Sun, 26 Dec 2010 22:45:51 +0100 User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
Hi,
I'm a french guy Arnaud TARDY. I used Linux but..md5sum are different
between Linux and Windows for a same word!! Exemple

Linux: echo 'somme' | md5sum
result: cc72185f414a55738ee4460aa82802b3

windows somme
Result: 3CE6E7F240E6B94C36FD0DDA70C213E9

Can you help me?
Thanks.
Arnaud TARDY

Linux: 2.6.31.14-desktop586-1nmb
version of md5sum :7.5



--- End Message ---
--- Begin Message --- Subject: Re: bug#7739: bug in md5sum ? Date: Sat, 9 Apr 2011 21:40:43 -0600 User-agent: Mutt/1.5.21 (2010-09-15)
Bob Proulx wrote:
> Arnaud TARDY wrote:
> > [...] but..md5sum are different between Linux and Windows for a same
> > word!! Exemple
> > 
> > Linux: echo 'somme' | md5sum
> > result: cc72185f414a55738ee4460aa82802b3
> 
> Correct.  Don't forget that echo adds a newline (\n) to the end of the
> line.
> 
>   $ echo 'somme' | md5sum
>   cc72185f414a55738ee4460aa82802b3  -
> 
>   $ echo 'somme' | od -tx1 -c
>   0000000  73  6f  6d  6d  65  0a
>             s   o   m   m   e  \n
>   0000006
> 
> > windows somme
> > Result: 3CE6E7F240E6B94C36FD0DDA70C213E9
> 
> That would be the result of md5sum on that word without a newline on
> the end.  You can see this by using printf instead of echo.  Printf
> does not add a newline on the end of the line by default unless
> directed by having a newline (\n) at the end of the string.
> 
>   $ printf 'somme' | md5sum
>   3ce6e7f240e6b94c36fd0dda70c213e9  -
> 
>   $ printf 'somme' | od -tx1 -c
>   0000000  73  6f  6d  6d  65
>             s   o   m   m   e
>   0000005
> 
>   $ printf 'somme\n' | md5sum
>   cc72185f414a55738ee4460aa82802b3  -
> 
>   $ printf 'somme\n' | od -tx1 -c
>   0000000  73  6f  6d  6d  65  0a
>             s   o   m   m   e  \n
>   0000006
> 
> As such I don't think this is a bug but a misunderstanding of the
> effects of the newline at the end of the line.

There were several messages and suggestions in response to your bug
report.  It has been several months without a response from you.  I
can only assume that the problem has been resolved.  Therefore I am
closing this bug report.

Thanks for helping to improve GNU!

Bob


--- End Message ---

reply via email to

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