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

ruby-changes:3374

From: ko1@a...
Date: 3 Jan 2008 18:40:26 +0900
Subject: [ruby-changes:3374] akr - Ruby:r14867 (trunk): * encoding.c: (rb_tolower, rb_toupper): body was exchanged.

akr	2008-01-03 18:40:00 +0900 (Thu, 03 Jan 2008)

  New Revision: 14867

  Modified files:
    trunk/ChangeLog
    trunk/encoding.c

  Log:
    * encoding.c: (rb_tolower, rb_toupper): body was exchanged.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14867&r2=14866&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=14867&r2=14866&diff_format=u

Index: encoding.c
===================================================================
--- encoding.c	(revision 14866)
+++ encoding.c	(revision 14867)
@@ -1039,12 +1039,12 @@
 int
 rb_tolower(int c)
 {
-    return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_UPPER_CASE(c) : c;
+    return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_LOWER_CASE(c) : c;
 }
 
 int
 rb_toupper(int c)
 {
-    return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_LOWER_CASE(c) : c;
+    return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_UPPER_CASE(c) : c;
 }
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14866)
+++ ChangeLog	(revision 14867)
@@ -1,3 +1,7 @@
+Thu Jan  3 18:39:12 2008  Tanaka Akira  <akr@f...>
+
+	* encoding.c: (rb_tolower, rb_toupper): body was exchanged.
+
 Thu Jan  3 17:54:01 2008  Tanaka Akira  <akr@f...>
 
 	* regenc.h (onigenc_ascii_is_code_ctype): put back.

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

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