ruby-changes:5008
From: ko1@a...
Date: Wed, 21 May 2008 07:50:08 +0900 (JST)
Subject: [ruby-changes:5008] naruse - Ruby:r16501 (trunk): * fix for (rb_enc_get_index(obj) == idx) case.
naruse 2008-05-21 07:50:01 +0900 (Wed, 21 May 2008) New Revision: 16501 Modified files: trunk/encoding.c Log: * fix for (rb_enc_get_index(obj) == idx) case. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=16501&r2=16500&diff_format=u Index: encoding.c =================================================================== --- encoding.c (revision 16500) +++ encoding.c (revision 16501) @@ -569,7 +569,7 @@ { /* enc_check_capable(obj);*/ if (rb_enc_get_index(obj) == idx) - return; + return obj; if (!ENC_CODERANGE_ASCIIONLY(obj) || !rb_enc_asciicompat(rb_enc_from_index(idx))) { ENC_CODERANGE_CLEAR(obj); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/