Backport #4112
closed
StringIO#gets(limit) returns incomplete string
Added by nobu (Nobuyoshi Nakada) over 13 years ago.
Updated almost 13 years ago.
Description
=begin
StringIO#getsに長さを指定したとき、マルチバイト文字が途中で切れることがあります。
StringIO.new("\u3042").gets(1) #=> "\xE3"
StringIO.new("a".encode("utf-16be")).gets(1) #=> "\x00"
=end
Files
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r30063.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
- Category set to ext
- Status changed from Closed to Assigned
- Assignee changed from nobu (Nobuyoshi Nakada) to yugui (Yuki Sonoda)
- Status changed from Assigned to Closed
=begin
This issue was solved with changeset r30308.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Also available in: Atom
PDF
Like0
Like0Like0Like0