From 85c86a4e294aeee92b78c075628ec88cdf54d1ea Mon Sep 17 00:00:00 2001 From: usa Date: Sat, 10 Jun 2006 22:28:42 +0000 Subject: [PATCH] * lib/rdoc/ri/ri_writer.rb: use String#ord. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 +++++- lib/rdoc/ri/ri_writer.rb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 041784789f..797bc97124 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Jun 11 07:27:11 2006 NAKAMURA Usaku + + * lib/rdoc/ri/ri_writer.rb: use String#ord. + Sun Jun 11 04:38:20 2006 Nobuyoshi Nakada * object.c (sym_to_proc): imported Symbol#to_proc from ActiveSupprot. @@ -29,7 +33,7 @@ Sat Jun 10 10:13:13 2006 NAKAMURA Usaku * lib/rdoc/markup/simple_markup/inline.rb: follow the new behavior of String#[]. - * lib/rdoc/ri/ri_write.rb: ditto. + * lib/rdoc/ri/ri_writer.rb: ditto. Sat Jun 10 08:17:23 2006 Nobuyoshi Nakada 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