Forum: Ruby-dev [Assigned] StringIO#putc is unnaware of encoding

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2014-04-21 07:06
(Received via mailing list)
Issue #9765 has been reported by Nobuyoshi Nakada.

Bug #9765: StringIO#putc is unnaware of encoding

* Author: Nobuyoshi Nakada
* Status: Assigned
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: ext
* Target version: current: 2.2.0
* ruby -v: r45637
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED

$ ruby -e 'IO.pipe{|r,w| w.putc("\u{3042}"); w.putc(0x3044); w.close; p}'

$ ruby -rstringio -e 'sio =""); sio.putc("\u{3042}");
sio.putc(0x3044); p sio.string'
This topic is locked and can not be replied to.