* parse.y (parser_tokadd_string): the byte after ``\'' may be a part of

multibyte character, so pushback it. [ruby-list:46416]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2009-09-28 02:40:30 +00:00
parent b07650769e
commit 438b28d3f7
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Sep 28 11:38:07 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* parse.y (parser_tokadd_string): the byte after ``\'' may be a part of
multibyte character, so pushback it. [ruby-list:46416]
Mon Sep 28 10:06:38 2009 NARUSE, Yui <naruse@ruby-lang.org> Mon Sep 28 10:06:38 2009 NARUSE, Yui <naruse@ruby-lang.org>
* stringio/stringio.c (strio_read): set ASCII-8BIT encoding * stringio/stringio.c (strio_read): set ASCII-8BIT encoding

View File

@ -5737,6 +5737,8 @@ parser_tokadd_string(struct parser_params *parser,
} }
else if (c != term && !(paren && c == paren)) { else if (c != term && !(paren && c == paren)) {
tokadd('\\'); tokadd('\\');
pushback(c);
continue;
} }
} }
} }