pry / pry-doc

Provide MRI Core documentation and source code for the Pry REPL
https://github.com/pry/pry-doc
Other
175 stars 26 forks source link

install produces numerous unable to convert "\xXX" from ASCII-8BIT to UTF-8 messages #13

Open dbenhur opened 11 years ago

dbenhur commented 11 years ago

gem install pry-doc with ruby 2.x (I think older rubies too) gets hundreds of "unable to convert" messages while parsing documentation; console excerpt below:

...
Successfully installed yard-0.8.6.1
Fetching: pry-doc-0.4.6.gem (100%)
Successfully installed pry-doc-0.4.6
Parsing documentation for yard-0.8.6.1
unable to convert "\xF5" from ASCII-8BIT to UTF-8 for lib/yard/server/templates/default/fulldoc/html/images/processing.gif, skipping
Installing ri documentation for yard-0.8.6.1
Parsing documentation for pry-doc-0.4.6
unable to convert "\x8D" from ASCII-8BIT to UTF-8 for lib/pry-doc/core_docs_18/object_types, skipping
unable to convert "\xEC" from ASCII-8BIT to UTF-8 for lib/pry-doc/core_docs_18/objects/ArgumentError.dat, skipping
unable to convert "\xB1" from ASCII-8BIT to UTF-8 for lib/pry-doc/core_docs_18/objects/Array.dat, skipping
unable to convert "\xFB" from ASCII-8BIT to UTF-8 for lib/pry-doc/core_docs_18/objects/Array/-_i.dat, skipping
...
kyrylo commented 11 years ago

Try this: gem install pry-doc --no-ri --no-rdoc. The problem is that it tries to parse Ruby docs in a .dat file (it doesn't contain Ruby source code).

brandondrew commented 10 years ago

Sorry, I may be misunderstanding something, but doesn't that give the same result as just ignoring the errors?

Also, do I correctly understand you to be saying that there is a flaw in rubygems, and that it should ignore the .dat file?

kyrylo commented 10 years ago

I have never investigated it properly, so I can't be sure in anything.

brandondrew commented 10 years ago

Okay, thanks.

On Fri, Dec 6, 2013 at 5:45 PM, Kyrylo Silin notifications@github.comwrote:

I have never investigated it properly, so I can't be sure in anything.

— Reply to this email directly or view it on GitHubhttps://github.com/pry/pry-doc/issues/13#issuecomment-30036250 .

Brandon Zylstra brandon.zylstra@gmail.com