diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-28 02:40:30 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-28 02:40:30 +0000 |
commit | 438b28d3f7a3989cc01020d2f14f9b2cfb859e7c (patch) | |
tree | 2f733c2e73a35457df2eb4dc97af957e0244801c | |
parent | b07650769e112ecb33d1738eef4d61727183d9c7 (diff) | |
download | ruby-438b28d3f7a3989cc01020d2f14f9b2cfb859e7c.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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> * stringio/stringio.c (strio_read): set ASCII-8BIT encoding @@ -5737,6 +5737,8 @@ parser_tokadd_string(struct parser_params *parser, } else if (c != term && !(paren && c == paren)) { tokadd('\\'); + pushback(c); + continue; } } } |