summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-05 21:24:42 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-05 21:24:42 +0000
commitfb9c53dea50fbbf7d789f0cac004a00c6d125022 (patch)
tree76dba7a7c896c5dcdb69656425395a6f2b3d8afe
parentdc98e2528a3d553a6ea7028482df8d5c48582601 (diff)
* tool/transcode-tblgen.rb (StrSet.parse): accept upper case
hexadecimal digits. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--tool/transcode-tblgen.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index db356deb1c0..27c1f9878bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Sep 6 06:23:27 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (StrSet.parse): accept upper case
+ hexadecimal digits.
+
Sat Sep 6 05:37:08 2008 Tanaka Akira <akr@fsij.org>
* transcode.c (output_hex_charref): upcase hexadecimal digits.
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index 3032b115ac0..2ed9f136186 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -36,11 +36,11 @@ class StrSet
seq = $'
set_result = []
set.scan(/[^,]+/) {|range|
- if /\A([0-9a-f][0-9a-f])-([0-9a-f][0-9a-f])\z/ =~ range
+ if /\A([0-9a-f][0-9a-f])-([0-9a-f][0-9a-f])\z/i =~ range
b = $1.to_i(16)
e = $2.to_i(16)
set_result << (b..e)
- elsif /\A([0-9a-f][0-9a-f])\z/ =~ range
+ elsif /\A([0-9a-f][0-9a-f])\z/i =~ range
byte = $1.to_i(16)
set_result << (byte..byte)
else