From 5f6cf7886cd5d0a40091594c487b803fe43094aa Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 13 Jun 2009 18:55:55 +0000 Subject: * enc/trans/utf8_mac.trans: remove wrong optimization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ enc/trans/utf8_mac.trans | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index cde0ed64a..3fb09f23a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Jun 14 03:37:09 2009 NARUSE, Yui + + * enc/trans/utf8_mac.trans: remove wrong optimization. + Sun Jun 14 01:53:00 2009 NARUSE, Yui * transcode.c (transcode_restartable0): can't build with VC9. diff --git a/enc/trans/utf8_mac.trans b/enc/trans/utf8_mac.trans index 5a12b59f0..7569c34ac 100644 --- a/enc/trans/utf8_mac.trans +++ b/enc/trans/utf8_mac.trans @@ -199,15 +199,6 @@ fun_so_from_utf8_mac(void *statep, 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++; -- cgit