From 1ed1a38c3e0d7a9ea341df3442afb86481a5e722 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 28 Oct 2016 15:14:32 +0000 Subject: Update windows-1255 table * enc/trans/windows-1255-tbl.rb: update mapping from 0xCA to U+05BA. [Feature #12877] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ enc/trans/windows-1255-tbl.rb | 3 ++- test/ruby/test_transcode.rb | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c28cd87b65..3b4caa42b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Oct 29 00:14:30 2016 Nobuyoshi Nakada + + * enc/trans/windows-1255-tbl.rb: update mapping from 0xCA to + U+05BA. [Feature #12877] + Fri Oct 28 23:22:32 2016 Nobuyoshi Nakada * enc/depend: extract transcode_tblgen method calls for libraries diff --git a/enc/trans/windows-1255-tbl.rb b/enc/trans/windows-1255-tbl.rb index 9084a56a10..4d4cafe0d8 100644 --- a/enc/trans/windows-1255-tbl.rb +++ b/enc/trans/windows-1255-tbl.rb @@ -43,6 +43,7 @@ WINDOWS_1255_TO_UCS_TBL = [ ["C7",0x5B7], ["C8",0x5B8], ["C9",0x5B9], + ["CA",0x5BA], ["CB",0x5BB], ["CC",0x5BC], ["CD",0x5BD], @@ -138,4 +139,4 @@ WINDOWS_1255_TO_UCS_TBL = [ ["E1CF",0xFB4C], ["EBCF",0xFB4D], ["F4CF",0xFB4E], -] \ No newline at end of file +] diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb index 2f97d098fd..b65a8c2b98 100644 --- a/test/ruby/test_transcode.rb +++ b/test/ruby/test_transcode.rb @@ -363,7 +363,7 @@ class TestTranscode < Test::Unit::TestCase check_both_ways("\u00BF", "\xBF", 'windows-1255') # ¿ check_both_ways("\u05B0", "\xC0", 'windows-1255') # ְ check_both_ways("\u05B9", "\xC9", 'windows-1255') # ֹ - assert_raise(Encoding::UndefinedConversionError) { "\xCA".encode("utf-8", 'windows-1255') } + check_both_ways("\u05BA", "\xCA", 'windows-1255') # ֺ check_both_ways("\u05BB", "\xCB", 'windows-1255') # ֻ check_both_ways("\u05BF", "\xCF", 'windows-1255') # ֿ check_both_ways("\u05C0", "\xD0", 'windows-1255') # ׀ -- cgit v1.2.3