ruby-changes:8230
From: nobu <ko1@a...>
Date: Sat, 11 Oct 2008 19:50:26 +0900 (JST)
Subject: [ruby-changes:8230] Ruby:r19758 (trunk): * parse.y (parser_prepare): use utf-8 encoding directly.
nobu 2008-10-11 19:49:56 +0900 (Sat, 11 Oct 2008) New Revision: 19758 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19758 Log: * parse.y (parser_prepare): use utf-8 encoding directly. Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 19757) +++ ChangeLog (revision 19758) @@ -1,3 +1,7 @@ +Sat Oct 11 19:49:35 2008 Nobuyoshi Nakada <nobu@r...> + + * parse.y (parser_prepare): use utf-8 encoding directly. + Sat Oct 11 10:20:17 2008 Nobuyoshi Nakada <nobu@r...> * lib/mkmf.rb (CLEANINGS): uses escaped form tabs to preventing the Index: parse.y =================================================================== --- parse.y (revision 19757) +++ parse.y (revision 19758) @@ -6295,7 +6295,7 @@ if (lex_pend - lex_p >= 2 && (unsigned char)lex_p[0] == 0xbb && (unsigned char)lex_p[1] == 0xbf) { - parser_set_encode(parser, "UTF-8"); + parser->enc = rb_utf8_encoding(); lex_p += 2; lex_pbeg = lex_p; return; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/