----- Original Message ----- From: Yukihiro Matsumoto <matz / zetabits.com> To: ruby-talk ML <ruby-talk / netlab.co.jp> Sent: Friday, January 12, 2001 1:18 AM Subject: [ruby-talk:9188] Re: binmode? > Hi, > > In message "[ruby-talk:9178] binmode?" > on 01/01/12, "Hal E. Fulton" <hal9000 / hypermetrics.com> writes: > > |What is IO#binmode for exactly? (Yes, I know it puts a > |stream in binary mode.) I notice that it's only for Windows... > > IO#binmode put IO in binary mode only if there's such thing on the > platform, otherwise do nothing. > > matz. OK... I guess I expected an embedded ^Z to mean end-of-file. When I use TYPE on such a file, it stops at the control-Z; but Ruby reads past it with or without binmode. I'm sure this is correct behavior and I'm just misunderstanding. Probably the OS "knows" somehow that my eof is fake (though TYPE certainly doesn't know). So is there any other difference in the two modes except for LF vs. CRLF? Hal