ruby-changes:37122
From: nobu <ko1@a...>
Date: Sat, 10 Jan 2015 13:02:17 +0900 (JST)
Subject: [ruby-changes:37122] nobu:r49203 (trunk): test for [Bug #10727]
nobu 2015-01-10 13:02:08 +0900 (Sat, 10 Jan 2015) New Revision: 49203 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49203 Log: test for [ruby-core:67473] [Bug #10727] Modified files: trunk/test/ruby/test_exception.rb Index: test/ruby/test_exception.rb =================================================================== --- test/ruby/test_exception.rb (revision 49202) +++ test/ruby/test_exception.rb (revision 49203) @@ -686,4 +686,16 @@ $stderr = $stdout; raise "\x82\xa0"') do https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L686 assert_match /\u3042/, err end end + + def test_multibyte_and_newline + bug10727 = '[ruby-core:67473] [Bug #10727]' + assert_in_out_err([], <<-'end;', [], /\u{306b 307b 3093 3054} \(E\)\n\u{6539 884c}/, bug10727, encoding: "UTF-8") + class E < StandardError + def initialize + super("\u{306b 307b 3093 3054}\n\u{6539 884c}") + end + end + raise E + end; + end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/