Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

activesupport-3.2.13 minor doc generation issue on Windows #9779

Closed
DHB opened this Issue Mar 18, 2013 · 7 comments

Comments

Projects
None yet
4 participants

DHB commented Mar 18, 2013

$ ruby --version && gem --version && bundle --version
ruby 1.9.3p392 (2013-02-22) [i386-mingw32]
2.0.3
Bundler version 1.3.4
$ gem update rails -v 3.2.13
[...]
[...]

Parsing documentation for activesupport-3.2.13
unable to convert "\x80" from ASCII-8BIT to UTF-8 for lib/active_support/values/unicode_tables.dat, skipping
Member

steveklabnik commented Mar 18, 2013

I want to say that this Isn't Our Problem, but I don't remember, exactly. @fxn?

DHB commented Mar 18, 2013

I am not sure either. I wrestled already with UTF-8 and code page setup for my console (actually the entire system). My codepage still sits at 850. When I change to 65001 - I stumble into other (not related) problems.

This is one of the many issues for the still not totally extinct Windows users. Very simular when installing certain gems like e.g. unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/1.8/redcloth_scan.so, skipping

Owner

fxn commented Mar 18, 2013

At first sight I'd bet the problem comes from https://github.com/rails/rails/blob/master/activesupport/activesupport.gemspec#L18, we are telling RDoc that anything below lib goes, while that should be all .rb files.

@fxn fxn closed this in c24528f Mar 18, 2013

Owner

fxn commented Mar 18, 2013

That was too quick, we rather need to configure rdoc.rdoc_files I believe. The thing is RDoc should not be parsing a .dat file.

@fxn fxn reopened this Mar 18, 2013

DHB commented Mar 18, 2013

👍 ... nor binaries - like *.so files e.g.:

Parsing documentation for nokogiri-1.5.7-x86-mingw32
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/nokogiri/1.8/nokogiri.so, skipping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/nokogiri/1.9/nokogiri.so, skipping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/nokogiri/2.0/nokogiri.so, skipping
Installing ri documentation for nokogiri-1.5.7-x86-mingw32
Owner

fxn commented Mar 18, 2013

@drbrain do you have any advice here? I was looking into a way to specify files for rdoc in the gemspecs, but according to the docs there seems to be no setter for them.

drbrain commented Mar 19, 2013

It is an rdoc bug, I should be able to release a fix this week

@drbrain drbrain referenced this issue in ruby/rdoc Mar 19, 2013

Closed

RDoc tries to parse `.bundle` files #195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment