Bug #11945
closed
[PATCH] stringio: binmode sets encoding to ASCII-8BIT
Added by normalperson (Eric Wong) almost 9 years ago.
Updated over 8 years ago.
Description
stringio: binmode sets encoding to ASCII-8BIT
This should match the behavior of IO#binmode as far
as treating content as ASCII-8BIT (binary).
Files
- Status changed from Open to Assigned
- Assignee set to normalperson (Eric Wong)
Good point.
Just adjust the indent as the rest, please.
- Status changed from Assigned to Closed
Applied in changeset r53435.
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]
- Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE, 2.2: REQUIRED, 2.3: REQUIRED
ruby_2_1 r53927 merged revision(s) 53435.
- Backport changed from 2.0.0: REQUIRED, 2.1: DONE, 2.2: REQUIRED, 2.3: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE, 2.3: REQUIRED
Backported into ruby_2_2
branch at r54042.
- Backport changed from 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE, 2.3: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE, 2.3: DONE
ruby_2_3 r54353 merged revision(s) 53435.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0