* re.c (unescape_escaped_nonascii): back out the last change on

the function.  [ruby-dev:36818]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-10-22 04:27:32 +00:00
Родитель 81525af4c9
Коммит 1d38a821ea
2 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Wed Oct 22 13:16:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* re.c (unescape_escaped_nonascii): back out the last change on
the function. [ruby-dev:36818]
Wed Oct 22 07:09:19 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/zlib/zlib.c (rb_gzreader_ungetc): should be able to unget

4
re.c
Просмотреть файл

@ -1967,13 +1967,9 @@ unescape_escaped_nonascii(const char **pp, const char *end, rb_encoding *enc,
l = rb_enc_precise_mbclen(chbuf, chbuf+chlen, enc);
if (MBCLEN_INVALID_P(l)) {
if (*encp == 0)
enc = *encp = rb_ascii8bit_encoding();
else if (*encp != rb_ascii8bit_encoding()) {
strcpy(err, "invalid multibyte escape");
return -1;
}
}
if (1 < chlen || (chbuf[0] & 0x80)) {
rb_str_buf_cat(buf, chbuf, chlen);