ruby-changes:43574
From: duerst <ko1@a...>
Date: Wed, 13 Jul 2016 08:40:33 +0900 (JST)
Subject: [ruby-changes:43574] duerst:r55647 (trunk): * test/ruby/enc/test_iso_8859.rb: Excluded dotless i/I with dot from
duerst 2016-07-13 08:40:26 +0900 (Wed, 13 Jul 2016) New Revision: 55647 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55647 Log: * test/ruby/enc/test_iso_8859.rb: Excluded dotless i/I with dot from case-insensitive matching because they are not a case pair. Modified files: trunk/ChangeLog trunk/test/ruby/enc/test_iso_8859.rb Index: test/ruby/enc/test_iso_8859.rb =================================================================== --- test/ruby/enc/test_iso_8859.rb (revision 55646) +++ test/ruby/enc/test_iso_8859.rb (revision 55647) @@ -29,13 +29,15 @@ class TestISO8859 < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/enc/test_iso_8859.rb#L29 end def test_iso_8859_3 + # todo: decide on behavior, test, and fix implementation re. 聴 and 脹 (0xA9/0xB9) + # treating them as case equivalents is definitely an error eval(%q(# encoding: iso8859-3 assert_match(/^(\xdf)\1$/i, "\xdf\xdf") assert_match(/^(\xdf)\1$/i, "ssss") assert_match(/^[\xdfz]+$/i, "sszzsszz") assert_match(/^SS$/i, "\xdf") assert_match(/^Ss$/i, "\xdf") - [0xa1, 0xa6, *(0xa9..0xac), 0xaf].each do |c| + [0xa1, 0xa6, *(0xaa..0xac), 0xaf].each do |c| c1 = c.chr("iso8859-3") c2 = (c + 0x10).chr("iso8859-3") assert_match(/^(#{ c1 })\1$/i, c2 + c1) Index: ChangeLog =================================================================== --- ChangeLog (revision 55646) +++ ChangeLog (revision 55647) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jul 13 08:40:21 2016 Martin Duerst <duerst@i...> + + * test/ruby/enc/test_iso_8859.rb: Excluded dotless i/I with dot from + case-insensitive matching because they are not a case pair. + Tue Jul 12 23:13:43 2016 Nobuyoshi Nakada <nobu@r...> * math.c (rb_math_sqrt): [EXPERIMENTAL] move Complex sqrt support -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/