mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (rb_io_putc): documentation updated to mention putc would
not work well with multi-byte characters. [ruby-core:30697] * io.c (rb_f_putc): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
55fb81e75f
commit
020bd635ac
2 changed files with 15 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Thu Jun 10 09:10:08 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* io.c (rb_io_putc): documentation updated to mention putc would
|
||||||
|
not work well with multi-byte characters. [ruby-core:30697]
|
||||||
|
|
||||||
|
* io.c (rb_f_putc): ditto.
|
||||||
|
|
||||||
Wed Jun 9 22:51:50 2010 Tanaka Akira <akr@fsij.org>
|
Wed Jun 9 22:51:50 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* time.c (find_time_t): always outerpolate from past.
|
* time.c (find_time_t): always outerpolate from past.
|
||||||
|
|
11
io.c
11
io.c
|
@ -6012,9 +6012,11 @@ rb_f_print(int argc, VALUE *argv)
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ios.putc(obj) -> obj
|
* ios.putc(obj) -> obj
|
||||||
*
|
*
|
||||||
* If <i>obj</i> is <code>Numeric</code>, write the character whose
|
* If <i>obj</i> is <code>Numeric</code>, write the character whose code is
|
||||||
* code is <i>obj</i>, otherwise write the first character of the
|
* the least-significant byte of <i>obj</i>, otherwise write the first byte
|
||||||
* string representation of <i>obj</i> to <em>ios</em>.
|
* 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.
|
||||||
*
|
*
|
||||||
* $stdout.putc "A"
|
* $stdout.putc "A"
|
||||||
* $stdout.putc 65
|
* $stdout.putc 65
|
||||||
|
@ -6040,6 +6042,9 @@ rb_io_putc(VALUE io, VALUE ch)
|
||||||
* Equivalent to:
|
* Equivalent to:
|
||||||
*
|
*
|
||||||
* $stdout.putc(int)
|
* $stdout.putc(int)
|
||||||
|
*
|
||||||
|
* Refer to the documentation for IO#putc for important information regarding
|
||||||
|
* multi-byte characters.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
Loading…
Add table
Reference in a new issue