summaryrefslogtreecommitdiff
path: root/tool/transcode-tblgen.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-31 17:49:08 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-31 17:49:08 +0000
commit0f81455429732027fe04118d300c9954bacbcc3c (patch)
tree4c1fb05cd246a6a2d234d36d801c96839258972d /tool/transcode-tblgen.rb
parent8841969485b9d65aad60cab456e24e7f8bcbcd3c (diff)
* tool/transcode-tblgen.rb: change "illegal" to "invalid".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/transcode-tblgen.rb')
-rw-r--r--tool/transcode-tblgen.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index 44be6a9..70eb360 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -405,21 +405,21 @@ def citrus_mskanji_cstomb(csid, index)
index + 0x80
when 2, 3
row = index >> 8
- raise "illegal byte sequence" if row < 0x21
+ raise "invalid byte sequence" if row < 0x21
if csid == 3
if row <= 0x2F
offset = (row == 0x22 || row >= 0x26) ? 0xED : 0xF0
elsif row >= 0x4D && row <= 0x7E
offset = 0xCE
else
- raise "illegal byte sequence"
+ raise "invalid byte sequence"
end
else
- raise "illegal byte sequence" if row > 0x97
+ raise "invalid byte sequence" if row > 0x97
offset = (row < 0x5F) ? 0x81 : 0xC1
end
col = index & 0xFF
- raise "illegal byte sequence" if (col < 0x21 || col > 0x7E)
+ raise "invalid byte sequence" if (col < 0x21 || col > 0x7E)
row -= 0x21
col -= 0x21