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

ruby-changes:12020

From: naruse <ko1@a...>
Date: Sun, 14 Jun 2009 03:56:36 +0900 (JST)
Subject: [ruby-changes:12020] Ruby:r23686 (trunk): * enc/trans/utf8_mac.trans: remove wrong optimization.

naruse	2009-06-14 03:55:55 +0900 (Sun, 14 Jun 2009)

  New Revision: 23686

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

  Log:
    * enc/trans/utf8_mac.trans: remove wrong optimization.

  Modified files:
    trunk/ChangeLog
    trunk/enc/trans/utf8_mac.trans

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23685)
+++ ChangeLog	(revision 23686)
@@ -1,3 +1,7 @@
+Sun Jun 14 03:37:09 2009  NARUSE, Yui  <naruse@r...>
+
+	* enc/trans/utf8_mac.trans: remove wrong optimization.
+
 Sun Jun 14 01:53:00 2009  NARUSE, Yui  <naruse@r...>
 
 	* transcode.c (transcode_restartable0): can't build with VC9.
Index: enc/trans/utf8_mac.trans
===================================================================
--- enc/trans/utf8_mac.trans	(revision 23685)
+++ enc/trans/utf8_mac.trans	(revision 23686)
@@ -199,15 +199,6 @@
       case 1:
         n = from_utf8_mac_finish(sp, o, osize);
         break;
-      case 3:
-        if (s[0] == 0xE3 && s[1] == 0x82 && (s[2] == 0x99 || s[2] == 0x9A)) {
-            n = from_utf8_mac_finish(sp, o, osize);
-            o[n++] = *s++;
-            o[n++] = *s++;
-            o[n++] = *s++;
-            return n;
-        }
-        break;
       case 4:
         n = from_utf8_mac_finish(sp, o, osize);
         o[n++] = *s++;

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

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