ruby-changes:2718
From: ko1@a...
Date: 13 Dec 2007 17:04:07 +0900
Subject: [ruby-changes:2718] nobu - Ruby:r14209 (trunk): * encoding.c (rb_enc_compatible): should swap encoding indexes too.
nobu 2007-12-13 17:03:31 +0900 (Thu, 13 Dec 2007)
New Revision: 14209
Modified files:
trunk/ChangeLog
trunk/encoding.c
Log:
* encoding.c (rb_enc_compatible): should swap encoding indexes too.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14209&r2=14208
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=14209&r2=14208
Index: encoding.c
===================================================================
--- encoding.c (revision 14208)
+++ encoding.c (revision 14209)
@@ -390,8 +390,11 @@
}
if (BUILTIN_TYPE(str1) != T_STRING) {
VALUE tmp = str1;
+ int idx0 = idx1;
str1 = str2;
str2 = tmp;
+ idx1 = idx2;
+ idx2 = idx0;
}
if (BUILTIN_TYPE(str1) == T_STRING) {
int cr1, cr2;
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14208)
+++ ChangeLog (revision 14209)
@@ -1,3 +1,7 @@
+Thu Dec 13 17:03:29 2007 Nobuyoshi Nakada <nobu@r...>
+
+ * encoding.c (rb_enc_compatible): should swap encoding indexes too.
+
Thu Dec 13 16:41:37 2007 Yukihiro Matsumoto <matz@r...>
* encoding.c (rb_enc_compatible): should not judge compatibility
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml