ruby-changes:49097
From: kazu <ko1@a...>
Date: Wed, 13 Dec 2017 23:08:25 +0900 (JST)
Subject: [ruby-changes:49097] kazu:r61212 (trunk): [DOC] Fix exception class [ci skip]
kazu 2017-12-13 23:08:20 +0900 (Wed, 13 Dec 2017) New Revision: 61212 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61212 Log: [DOC] Fix exception class [ci skip] ref https://github.com/rurema/doctree/pull/816 Modified files: trunk/re.c Index: re.c =================================================================== --- re.c (revision 61211) +++ re.c (revision 61212) @@ -1325,14 +1325,14 @@ rb_backref_set_string(VALUE string, long https://github.com/ruby/ruby/blob/trunk/re.c#L1325 * r.fixed_encoding? #=> true * r.encoding #=> #<Encoding:UTF-8> * r =~ "\u{6666} a" #=> 2 - * r =~ "\xa1\xa2".force_encoding("euc-jp") #=> ArgumentError + * r =~ "\xa1\xa2".force_encoding("euc-jp") #=> Encoding::CompatibilityError * r =~ "abc".force_encoding("euc-jp") #=> 0 * * r = /\u{6666}/ * r.fixed_encoding? #=> true * r.encoding #=> #<Encoding:UTF-8> * r =~ "\u{6666} a" #=> 0 - * r =~ "\xa1\xa2".force_encoding("euc-jp") #=> ArgumentError + * r =~ "\xa1\xa2".force_encoding("euc-jp") #=> Encoding::CompatibilityError * r =~ "abc".force_encoding("euc-jp") #=> nil */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/