[前][次][番号順一覧][スレッド一覧]

ruby-changes:16276

From: naruse <ko1@a...>
Date: Thu, 10 Jun 2010 10:06:53 +0900 (JST)
Subject: [ruby-changes:16276] Ruby:r28244 (ruby_1_9_2): merge revision(s) 28243:

naruse	2010-06-10 10:06:37 +0900 (Thu, 10 Jun 2010)

  New Revision: 28244

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28244

  Log:
    merge revision(s) 28243:
    
    * 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.

  Modified files:
    branches/ruby_1_9_2/ChangeLog
    branches/ruby_1_9_2/io.c
    branches/ruby_1_9_2/version.h

Index: ruby_1_9_2/ChangeLog
===================================================================
--- ruby_1_9_2/ChangeLog	(revision 28243)
+++ ruby_1_9_2/ChangeLog	(revision 28244)
@@ -1,3 +1,10 @@
+Thu Jun 10 10:06:25 2010  Yukihiro Matsumoto  <matz@r...>
+
+	* 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.
+
 Tue Jun  8 22:14:36 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/etc/etc.c (etc_systmpdir): moved from ext/tmpdir.
Index: ruby_1_9_2/io.c
===================================================================
--- ruby_1_9_2/io.c	(revision 28243)
+++ ruby_1_9_2/io.c	(revision 28244)
@@ -6012,9 +6012,11 @@
  *  call-seq:
  *     ios.putc(obj)    -> obj
  *
- *  If <i>obj</i> is <code>Numeric</code>, write the character whose
- *  code is <i>obj</i>, otherwise write the first character of the
- *  string representation of  <i>obj</i> to <em>ios</em>.
+ *  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.
  *
  *     $stdout.putc "A"
  *     $stdout.putc 65
@@ -6040,6 +6042,9 @@
  *  Equivalent to:
  *
  *    $stdout.putc(int)
+ * 
+ * Refer to the documentation for IO#putc for important information regarding
+ * multi-byte characters.
  */
 
 static VALUE
Index: ruby_1_9_2/version.h
===================================================================
--- ruby_1_9_2/version.h	(revision 28243)
+++ ruby_1_9_2/version.h	(revision 28244)
@@ -1,5 +1,5 @@
 #define RUBY_VERSION "1.9.2"
-#define RUBY_RELEASE_DATE "2010-06-08"
+#define RUBY_RELEASE_DATE "2010-06-10"
 #define RUBY_PATCHLEVEL -1
 
 #define RUBY_VERSION_MAJOR 1
@@ -7,7 +7,7 @@
 #define RUBY_VERSION_TEENY 1
 #define RUBY_RELEASE_YEAR 2010
 #define RUBY_RELEASE_MONTH 6
-#define RUBY_RELEASE_DAY 8
+#define RUBY_RELEASE_DAY 10
 
 #include "ruby/version.h"
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]