From: Mike Fletcher Date: 2006-12-06T07:04:56+09:00 Subject: Re: md5 function in Ruby Denys Yakhnenko wrote: > Urabe Shyouhei wrote: >> >> You're on Windows? perhaps you are dancing with text mode... > > Yes I am on Windows. Can you please elaborate on that? Windows has a notion of "text files" and "binary files"; for the former translation is done of CR/NL characters, and no translation is done for the later. The MD5 utilities you're using are putting their file handles into binary mode and are seeing all of the actual octets of the file's contents; you're seeing a different sequence of octets since your file handle is in text mode. See the IO#binmode method docs as well. -- Posted via http://www.ruby-forum.com/.