ruby-changes:52643
From: eregon <ko1@a...>
Date: Wed, 26 Sep 2018 18:32:16 +0900 (JST)
Subject: [ruby-changes:52643] eregon:r64855 (trunk): Use String arguments for #search_convpath
eregon 2018-09-26 18:32:09 +0900 (Wed, 26 Sep 2018) New Revision: 64855 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64855 Log: Use String arguments for #search_convpath * Otherwise it seems to SEGV on Windows, see https://github.com/ruby/ruby/commit/f00bf242724d40d59a242c6bf9e567d18c9e1872#commitcomment-30650955 Modified files: trunk/spec/ruby/core/encoding/converter/search_convpath_spec.rb Index: spec/ruby/core/encoding/converter/search_convpath_spec.rb =================================================================== --- spec/ruby/core/encoding/converter/search_convpath_spec.rb (revision 64854) +++ spec/ruby/core/encoding/converter/search_convpath_spec.rb (revision 64855) @@ -26,15 +26,9 @@ with_feature :encoding do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/encoding/converter/search_convpath_spec.rb#L26 end it "raises an Encoding::ConverterNotFoundError if no conversion path exists" do -# lambda do -# Encoding::Converter.search_convpath( -# Encoding::ASCII_8BIT, Encoding::Emacs_Mule) -# end.should raise_error(Encoding::ConverterNotFoundError) - begin - Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule) - rescue => e - e.class.should == Encoding::ConverterNotFoundError - end + lambda do + Encoding::Converter.search_convpath(Encoding::ASCII_8BIT.name, Encoding::Emacs_Mule.name) + end.should raise_error(Encoding::ConverterNotFoundError) end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/