ruby-changes:14997
From: nobu <ko1@a...>
Date: Thu, 11 Mar 2010 17:32:25 +0900 (JST)
Subject: [ruby-changes:14997] Ruby:r26872 (trunk): * transcode.c (str_transcode0): confirm the code range.
nobu 2010-03-11 17:32:03 +0900 (Thu, 11 Mar 2010) New Revision: 26872 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26872 Log: * transcode.c (str_transcode0): confirm the code range. Modified files: trunk/ChangeLog trunk/transcode.c Index: ChangeLog =================================================================== --- ChangeLog (revision 26871) +++ ChangeLog (revision 26872) @@ -1,3 +1,7 @@ +Thu Mar 11 17:31:59 2010 Nobuyoshi Nakada <nobu@r...> + + * transcode.c (str_transcode0): confirm the code range. + Thu Mar 11 12:14:17 2010 Nobuyoshi Nakada <nobu@r...> * missing/signbit.c: added. Index: transcode.c =================================================================== --- transcode.c (revision 26871) +++ transcode.c (revision 26872) @@ -2590,7 +2590,7 @@ return NIL_P(arg2) ? -1 : dencidx; } if (senc && denc && rb_enc_asciicompat(senc) && rb_enc_asciicompat(denc)) { - if (ENC_CODERANGE(str) == ENC_CODERANGE_7BIT) { + if (rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT) { return dencidx; } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/