From 0f327839763d5cc64d52b1e9fc432c8dfee5ddac Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 21 Mar 2016 10:09:33 +0000 Subject: string.c: skip invalid char gap * string.c (enc_succ_alnum_char): try to skip an invalid character gap between GREEK CAPITAL RHO and SIGMA. [ruby-core:74478] [Bug #12204] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_m17n.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index 8e7e4c6f91..950d205ae5 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -1678,4 +1678,9 @@ class TestM17N < Test::Unit::TestCase end assert_equal(e("[\"\xB4\xC1\xBB\xFA\"]"), s, bug11787) end + + def test_greek_capital_gap + bug12204 = '[ruby-core:74478] [Bug #12204] GREEK CAPITAL RHO and SIGMA' + assert_equal("\u03A3", "\u03A1".succ, bug12204) + end end -- cgit v1.2.3