summaryrefslogtreecommitdiff
path: root/lib/rexml/encodings/US-ASCII.rb
diff options
context:
space:
mode:
authorser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-16 15:17:31 +0000
committerser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-16 15:17:31 +0000
commit8fd29e2019077205a9997308cf3bc05202a83ad1 (patch)
tree5add8b63369553228f3348398c7681f22c58cbec /lib/rexml/encodings/US-ASCII.rb
parentac1d9e7c2dfceb06a9b6ee22e2fc0593c9ddce29 (diff)
------------------------------------------------------------------------
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/encodings/US-ASCII.rb')
-rw-r--r--lib/rexml/encodings/US-ASCII.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/encodings/US-ASCII.rb b/lib/rexml/encodings/US-ASCII.rb
index f4e4527c2d..fe8f6df303 100644
--- a/lib/rexml/encodings/US-ASCII.rb
+++ b/lib/rexml/encodings/US-ASCII.rb
@@ -6,7 +6,7 @@ module REXML
array_utf8 = content.unpack('U*')
array_enc = []
array_utf8.each do |num|
- if num <= 0xFF
+ if num <= 0x7F
array_enc << num
else
# Numeric entity (&#nnnn;); shard by Stefan Scholl