diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-13 18:55:55 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-13 18:55:55 +0000 |
| commit | 5f6cf7886cd5d0a40091594c487b803fe43094aa (patch) | |
| tree | 9c7f563b9576c93e46cd0e8aca7af534f44475c8 | |
| parent | 6e1b30cdac7a5b2e5e42a6e6dc045ee601c11400 (diff) | |
| download | ruby-5f6cf7886cd5d0a40091594c487b803fe43094aa.tar.gz ruby-5f6cf7886cd5d0a40091594c487b803fe43094aa.tar.xz ruby-5f6cf7886cd5d0a40091594c487b803fe43094aa.zip | |
* 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
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | enc/trans/utf8_mac.trans | 9 |
2 files changed, 4 insertions, 9 deletions
@@ -1,3 +1,7 @@ +Sun Jun 14 03:37:09 2009 NARUSE, Yui <naruse@ruby-lang.org> + + * enc/trans/utf8_mac.trans: remove wrong optimization. + Sun Jun 14 01:53:00 2009 NARUSE, Yui <naruse@ruby-lang.org> * 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++; |
