ruby-changes:2585
From: ko1@a...
Date: 2 Dec 2007 10:43:41 +0900
Subject: [ruby-changes:2585] akr - Ruby:r14076 (trunk): eval("\"\xfd".force_encoding("utf-8")) generates garbage in error message.
akr 2007-12-02 10:43:29 +0900 (Sun, 02 Dec 2007) New Revision: 14076 Modified files: trunk/bootstraptest/test_knownbug.rb Log: eval("\"\xfd".force_encoding("utf-8")) generates garbage in error message. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=14076&r2=14075 Index: bootstraptest/test_knownbug.rb =================================================================== --- bootstraptest/test_knownbug.rb (revision 14075) +++ bootstraptest/test_knownbug.rb (revision 14076) @@ -9,3 +9,8 @@ Process.wait pid $?.to_i }, '[ruby-dev:32404]' + +assert_match /unterminated string meets end of file/, %q{ + STDERR.reopen(STDOUT) + eval("\"\xfd".force_encoding("utf-8")) +} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml