зеркало из https://github.com/github/ruby.git
* parse.y (parser_read_escape): has8bit flag may be set with control
escape. [ruby-core:13722] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d7e4c1e66b
Коммит
64ba5303fd
|
@ -1,4 +1,7 @@
|
|||
Tue Nov 20 15:08:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Tue Nov 20 15:09:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (parser_read_escape): has8bit flag may be set with control
|
||||
escape. [ruby-core:13722]
|
||||
|
||||
* parse.y (parser_prepare): set begging after BOM if exists.
|
||||
[ruby-core:13718]
|
||||
|
|
2
parse.y
2
parse.y
|
@ -5144,7 +5144,7 @@ parser_read_escape(struct parser_params *parser, int flags,
|
|||
if (flags & ESCAPE_CONTROL) goto eof;
|
||||
if ((c = nextc())== '\\') {
|
||||
int tmp;
|
||||
c = read_escape(flags|ESCAPE_CONTROL, &tmp, &tmp, encp);
|
||||
c = read_escape(flags|ESCAPE_CONTROL, has8bit, &tmp, encp);
|
||||
}
|
||||
else if (c == '?')
|
||||
return 0177;
|
||||
|
|
Загрузка…
Ссылка в новой задаче