diff --git a/ChangeLog b/ChangeLog index 3b7ca70394..e62908ab03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Sep 1 02:48:28 2008 Tanaka Akira + + * tool/transcode-tblgen.rb: change "illegal" to "invalid". + Mon Sep 1 02:31:16 2008 Tanaka Akira * tool/transcode-tblgen.rb (transcode_generated_code): defined for diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb index 44be6a9d96..70eb360914 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