ruby-cvs:22454
From: usa ruby-lang.org
Date: Thu, 24 Jan 2008 20:43:41 +0900 (JST)
Subject: [ruby-cvs:22454] Ruby:r15217 (trunk): * parser.y (parser_str_new): automatically update string literal's
usa 2008-01-24 20:43:40 +0900 (Thu, 24 Jan 2008)
New Revision: 15217
Modified files:
trunk/ChangeLog
trunk/parse.y
Log:
* parser.y (parser_str_new): automatically update string literal's
encoding from US-ASCII to ASCII-8BIT when script encoding is US-ASCII
and the string includes non-ascii bytes. [ruby-dev:33348]
* parser.y (reg_fragment_check_gen, reg_compile_gen): automatically
update regexp literal's encoding from US-ASCII to ASCII-8BIT when
script encoding is US-ASCII, the regexp has no kcode option and the
regexp includes non-ascii bytes. [ruby-dev:33353]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=15217&r2=15216&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15217&r2=15216&diff_format=u