[ruby-cvs:60599] normal:r53435 (trunk): stringio: binmode sets encoding to ASCII-8BIT

normal at ruby-lang.org normal at ruby-lang.org
Tue Jan 5 05:45:14 JST 2016


normal	2016-01-05 05:45:14 +0900 (Tue, 05 Jan 2016)

  New Revision: 53435

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53435

  Log:
    stringio: binmode sets encoding to ASCII-8BIT
    
    This should match the behavior of IO#binmode as far
    as treating content as ASCII-8BIT (binary).
    
    * ext/stringio/stringio.c (strio_binmode): implement to set encoding
    * test/stringio/test_stringio.rb (test_binmode): new test
      [ruby-core:72699] [Bug #11945]

  Modified files:
    trunk/ChangeLog
    trunk/ext/stringio/stringio.c
    trunk/test/stringio/test_stringio.rb


More information about the ruby-cvs mailing list