On Sep 8, 2008, at 7:46 PM, Gregory Brown wrote:

> On Mon, Sep 8, 2008 at 8:23 PM, Michael Selig  
> <michael.selig / fs.com.au> wrote:
>> On Tue, 09 Sep 2008 03:43:54 +1000, NARUSE, Yui <naruse / airemix.jp>  
>> wrote:
>>
>
>> Yes, I know you can use that. I was just questioning whether it  
>> makes sense
>> for Ruby to stick with "b" meaning simply the newline & end of file
>> handling, without changing the character handling also. I felt that  
>> it makes
>> much more sense that IO#readchar (et al) return bytes when the file  
>> is
>> opened with "b". That behaviour may also be more backward  
>> compatible with
>> 1.8.
>
> I like the idea of defaulting encoding to BINARY (ASCII-8BIT) when
> opened with "b".

Yeah, I think it makes a lot of sense too.  Of course, if they specify  
an encoding, it should overwrite the default.

James Edward Gray II