diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/ri/ri_writer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/ri/ri_writer.rb b/lib/rdoc/ri/ri_writer.rb index f1042fba79..032558ed1c 100644 --- a/lib/rdoc/ri/ri_writer.rb +++ b/lib/rdoc/ri/ri_writer.rb @@ -13,7 +13,7 @@ module RI # by %xx) def RiWriter.internal_to_external(name) - name.gsub(/\W/) { "%%%02x" % $&[0].unpack('C') } + name.gsub(/\W/) { "%%%02x" % $&[0].ord } end # And the reverse operation |