diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-13 17:54:43 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-13 17:54:43 +0000 |
commit | fa37ab769fa4adac50959b514793e8d1a39a09ce (patch) | |
tree | 112074cd69b0a4008f0521afbb537846e014f2aa /enc/trans/single_byte.trans | |
parent | bce5056cab71b0df70393a5673627c7bd7c8b4e7 (diff) | |
download | ruby-fa37ab769fa4adac50959b514793e8d1a39a09ce.tar.gz |
* tool/transcode-tblgen.rb: reject ambiguous mapping.
* enc/trans/single_byte.trans: remove ambiguous maping such as
\xD6 -> U+05F2 and \xD6\xC7 -> U+FB1F in Windows-1255
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/trans/single_byte.trans')
-rw-r--r-- | enc/trans/single_byte.trans | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/trans/single_byte.trans b/enc/trans/single_byte.trans index 0d42740d30..db47074570 100644 --- a/enc/trans/single_byte.trans +++ b/enc/trans/single_byte.trans @@ -24,7 +24,7 @@ tbl_to_ucs = control1_if_needed + eval(name.gsub(/-/, '_') + "_TO_UCS_TBL") set_valid_byte_pattern(name, '1byte') code = '' - code << transcode_tblgen(name, "UTF-8", [["{00-7f}", :nomap], *tbl_to_ucs]) + code << transcode_tblgen(name, "UTF-8", [["{00-7f}", :nomap], *tbl_to_ucs.reject {|a, b| a.length != 2 }]) code << "\n" code << transcode_tblgen("UTF-8", name, [["{00-7f}", :nomap], *tbl_to_ucs.map {|a,b| [b,a] }]) code |