diff options
Diffstat (limited to 'lib/rdoc/ri/ri_writer.rb')
-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 78c68e8409..f1042fba79 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/) { sprintf("%%%02x", $&[0]) } + name.gsub(/\W/) { "%%%02x" % $&[0].unpack('C') } end # And the reverse operation |