From: Run Paint Run Run Date: 2009-08-18T08:27:41+09:00 Subject: [ruby-core:24958] [Bug #1948] RDoc Fails with Non-ASCII Pathnames Bug #1948: RDoc Fails with Non-ASCII Pathnames http://redmine.ruby-lang.org/issues/show/1948 Author: Run Paint Run Run Status: Open, Priority: Low Category: lib ruby -v: ruby 1.9.2dev (2009-08-05 trunk 24397) [i686-linux] `rdoc` fails when the pathname is non-ASCII. This happens with or without the 'charset' option set to UTF-8. For example: $ cat m��bius.rb # coding: utf-8 class Integer def mobius case when (self < 1) then nil when (square_free? and ��.even?) then 1 when (square_free? and ��.odd?) then -1 when (not square_free?) then 0 end end alias :m��bius :mobius alias :�� :mobius end $ rdoc m��bius.rb m��bius.rb: Cm Generating HTML... (erb):45:in `concat': incompatible character encodings: UTF-8 and US-ASCII (Encoding::CompatibilityError) from (erb):45:in `write_html_on' from /usr/local/lib/ruby/1.9.1/erb.rb:753:in `eval' from /usr/local/lib/ruby/1.9.1/erb.rb:753:in `result' from /usr/local/lib/ruby/1.9.1/rdoc/template.rb:57:in `block in write_html_on' from /usr/local/lib/ruby/1.9.1/rdoc/template.rb:56:in `reverse_each' from /usr/local/lib/ruby/1.9.1/rdoc/template.rb:56:in `write_html_on' from /usr/local/lib/ruby/1.9.1/rdoc/generator.rb:787:in `write_on' from /usr/local/lib/ruby/1.9.1/rdoc/generator/html.rb:232:in `block (2 levels) in gen_into' from /usr/local/lib/ruby/1.9.1/rdoc/generator/html.rb:231:in `open' from /usr/local/lib/ruby/1.9.1/rdoc/generator/html.rb:231:in `block in gen_into' from /usr/local/lib/ruby/1.9.1/rdoc/generator/html.rb:216:in `each' from /usr/local/lib/ruby/1.9.1/rdoc/generator/html.rb:216:in `gen_into' from /usr/local/lib/ruby/1.9.1/rdoc/generator/html.rb:179:in `generate_html' from /usr/local/lib/ruby/1.9.1/rdoc/generator/html.rb:86:in `generate' from /usr/local/lib/ruby/1.9.1/rdoc/rdoc.rb:279:in `document' from /usr/local/bin/rdoc:15:in `
' (I'm not sure whether to file RDoc bugs on the RubyForge tracker or here w.r.t 1.9. Apologies if I guessed wrongly.) ---------------------------------------- http://redmine.ruby-lang.org