зеркало из https://github.com/github/ruby.git
* regenc.c (onigenc_single_byte_code_to_mbc): follow OnigEncoding
change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
eca8de632c
Коммит
2af2eb28da
|
@ -1,3 +1,8 @@
|
|||
Fri Sep 12 20:28:59 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* regenc.c (onigenc_single_byte_code_to_mbc): follow OnigEncoding
|
||||
change.
|
||||
|
||||
Fri Sep 12 20:00:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* regparse.c (parse_exp): fix resource leak.
|
||||
|
|
2
regenc.c
2
regenc.c
|
@ -630,7 +630,7 @@ extern int
|
|||
onigenc_single_byte_code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc ARG_UNUSED)
|
||||
{
|
||||
if (code > 0xff)
|
||||
rb_raise(rb_eRangeError, "%"PRIdVALUE " out of char range", code);
|
||||
rb_raise(rb_eRangeError, "%u out of char range", code);
|
||||
*buf = (UChar )(code & 0xff);
|
||||
return 1;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче