Project

General

Profile

Actions

Bug #9294

closed

Documentation for IO#read claims resulting string is always ASCII-8BIT encoding

Added by steenslag (siep korteling) almost 11 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
Target version:
-
ruby -v:
2.0.0p247
[ruby-core:59305]

Description

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)

Updated by zzak (zzak _) almost 11 years ago

  • Category set to doc
  • Status changed from Open to Assigned
  • Assignee set to zzak (zzak _)

Thanks, I'll take a look when I get a chance.

Updated by stomar (Marcus Stollsteimer) almost 8 years ago

  • 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.").

Actions #3

Updated by usa (Usaku NAKAMURA) over 7 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED

Updated by usa (Usaku NAKAMURA) over 7 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: DONE, 2.3: REQUIRED, 2.4: REQUIRED

ruby_2_2 r58127 merged revision(s) 58008.

Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago

  • Backport changed from 2.2: DONE, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: DONE, 2.3: DONE, 2.4: REQUIRED

ruby_2_3 r58169 merged revision(s) 58008.

Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago

  • Backport changed from 2.2: DONE, 2.3: DONE, 2.4: REQUIRED to 2.2: DONE, 2.3: DONE, 2.4: DONE

ruby_2_4 r58628 merged revision(s) 58008.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0