зеркало из https://github.com/github/ruby.git
* enc/gb18030.c (gb18030_code_to_mbc): add 0x80000000
for 4bytes character. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8f05f7fe05
Коммит
5397015d2e
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Jun 2 04:35:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* enc/gb18030.c (gb18030_code_to_mbc): add 0x80000000
|
||||||
|
for 4bytes character.
|
||||||
|
|
||||||
Mon Jun 2 03:52:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Jun 2 03:52:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ruby.c (set_arg0): reverted used variable definition.
|
* ruby.c (set_arg0): reverted used variable definition.
|
||||||
|
|
|
@ -185,6 +185,9 @@ gb18030_mbc_to_code(const UChar* p, const UChar* end, OnigEncoding enc)
|
||||||
static int
|
static int
|
||||||
gb18030_code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc)
|
gb18030_code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc)
|
||||||
{
|
{
|
||||||
|
if ((code & 0xff000000) != 0) {
|
||||||
|
code |= 0x80000000;
|
||||||
|
}
|
||||||
return onigenc_mb4_code_to_mbc(enc, code, buf);
|
return onigenc_mb4_code_to_mbc(enc, code, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче