mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (parser_prepare): use utf-8 encoding directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
de7845773a
commit
d9fdf58aaa
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sat Oct 11 19:49:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* parse.y (parser_prepare): use utf-8 encoding directly.
|
||||||
|
|
||||||
Sat Oct 11 10:20:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Oct 11 10:20:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/mkmf.rb (CLEANINGS): uses escaped form tabs to preventing the
|
* lib/mkmf.rb (CLEANINGS): uses escaped form tabs to preventing the
|
||||||
|
|
2
parse.y
2
parse.y
|
@ -6295,7 +6295,7 @@ parser_prepare(struct parser_params *parser)
|
||||||
if (lex_pend - lex_p >= 2 &&
|
if (lex_pend - lex_p >= 2 &&
|
||||||
(unsigned char)lex_p[0] == 0xbb &&
|
(unsigned char)lex_p[0] == 0xbb &&
|
||||||
(unsigned char)lex_p[1] == 0xbf) {
|
(unsigned char)lex_p[1] == 0xbf) {
|
||||||
parser_set_encode(parser, "UTF-8");
|
parser->enc = rb_utf8_encoding();
|
||||||
lex_p += 2;
|
lex_p += 2;
|
||||||
lex_pbeg = lex_p;
|
lex_pbeg = lex_p;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue