mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
8f05f7fe05
commit
5397015d2e
2 changed files with 8 additions and 0 deletions
|
@ -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>
|
||||
|
||||
* 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
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue