[#81999] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — ko1@...
Issue #13737 has been updated by ko1 (Koichi Sasada).
4 messages
2017/07/11
[#82005] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — nobu@...
Issue #13737 has been updated by nobu (Nobuyoshi Nakada).
3 messages
2017/07/12
[#82102] Re: register_fstring_tainted:FL_TEST_RAW(str, RSTRING_FSTR) — Eric Wong <normalperson@...>
Koichi Sasada <ko1@atdot.net> wrote:
4 messages
2017/07/18
[#82151] [Ruby trunk Feature#13637] [PATCH] tool/runruby.rb: test with smallest possible machine stack — Rei.Odaira@...
Issue #13637 has been updated by ReiOdaira (Rei Odaira).
3 messages
2017/07/24
[ruby-core:82019] [Ruby trunk Bug#13741] A documentation bug of IO#putc
From:
shugo@...
Date:
2017-07-13 03:17:19 UTC
List:
ruby-core #82019
Issue #13741 has been reported by shugo (Shugo Maeda). ---------------------------------------- Bug #13741: A documentation bug of IO#putc https://bugs.ruby-lang.org/issues/13741 * Author: shugo (Shugo Maeda) * Status: Open * Priority: Normal * Assignee: naruse (Yui NARUSE) * Target version: * ruby -v: * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- The documentation of IO#putc says: ``` * call-seq: * ios.putc(obj) -> obj * * If <i>obj</i> is <code>Numeric</code>, write the character whose code is * the least-significant byte of <i>obj</i>, otherwise write the first byte * of the string representation of <i>obj</i> to <em>ios</em>. Note: This * method is not safe for use with multi-byte characters as it will truncate * them. ``` However, it supports multi-byte characters in the string argument form since r29447: ``` $ ruby -e 'putc "あいうえお"' あ ``` How about to change the documentation? ``` * If <i>obj</i> is <code>Numeric</code>, write the character whose code is * the least-significant byte of <i>obj</i>. * If <i>obj</i> is <code>String</code>, write the first character * of <i>obj</i> to <em>ios</em>. * Otherwise, raise <code>TypeError</code>. ``` It may be better to change the behavior of the numeric argument form to support multi-byte characters if <em>ios</em> has encoding information, but it's a different issue. -- 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>