зеркало из https://github.com/github/ruby.git
* 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:
Родитель
44a8a15037
Коммит
d9cf0f822f
|
@ -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++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче