mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enc/trans/utf8_mac.trans: remove wrong optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
44a8a15037
commit
d9cf0f822f
2 changed files with 4 additions and 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.
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue