Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dbenhur opened this issue May 20, 2013 · 4 comments

Comments

@dbenhur
Copy link

dbenhur commented May 20, 2013

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
Copy link
Member

kyrylo commented May 20, 2013

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
Copy link

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
Copy link
Member

kyrylo commented Dec 6, 2013

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

@brandondrew
Copy link

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//issues/13#issuecomment-30036250
.

Brandon Zylstra
brandon.zylstra@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants