Issue #9294 has been updated by stomar (Marcus Stollsteimer).

Status changed from Assigned to Closed
Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN

steenslag (siep korteling) wrote:
> Documentation for IO#read claims resulting string is always ASCII-8BIT encoding.

This statement refers only to the case that an integer `length` argument is provided; then binmode is used and the resulting string _is_ always ASCII-8BIT.

I tried to clarify this further in r58008 (_"In the case of an integer `length`, the resulting string is always in ASCII-8BIT encoding."_).

----------------------------------------
Bug #9294: Documentation for IO#read claims resulting string is always ASCII-8BIT encoding
https://bugs.ruby-lang.org/issues/9294#change-63648

* Author: steenslag (siep korteling)
* Status: Closed
* Priority: Normal
* Assignee: zzak (Zachary Scott)
* Target version: 
* ruby -v: 2.0.0p247
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Documentation for IO#read claims resulting string is always ASCII-8BIT encoding. This is not true (anymore).(http://www.ruby-doc.org/core-2.0.0/IO.html#method-i-read)



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>