From: jbshaldane@... (haldane) Date: 2004-03-31T19:04:23+09:00 Subject: Re: Problem with binary files in mswin ruby matz@ruby-lang.org (Yukihiro Matsumoto) wrote in message news:<1080698181.804826.20335.nullmailer@picachu.netlab.jp>... > |Could the methods in Marshal check for this and raise an exception if > |they fail to turn on binary mode? (At least on platforms where it > |matters). > > I'm not sure what you want exactly. Making "binmode" to raise > exception when internal buffer is already filled with text-mode > contents? > I think that this would probably be sane behaviour. If you change to binmode and there are characters in the internal buffer that have not been read then I think an exception would be logical. Stephen. +- S.D.Sykes - www.stephensykes.com -+ | "It's Arsenal 0, Everton 1, and the longer it stays like that the | more you've got to fancy Everton to win." -- John Motson