Ruby 2.0 warnings #41

Closed
bf4 opened this Issue Jul 24, 2014 · 3 comments

Projects

None yet

2 participants

Owner
bf4 commented Jul 24, 2014

Issue by dicom
Monday Feb 25, 2013 at 09:19 GMT
Originally opened as #69


Hello

I just tried installing the RMagick gem on the newly released Ruby 2.0.0 on Windows XP 32-bit (using DevKit), and it seems to produce several warnings while building the documentation. These are probably related to the fact that Ruby 2.0 has switched default encoding from ASCII-8BIT to UTF-8. Although RMagick seems to work fine after the install, I still think these warnings should be eliminated, to avoid alarming the user.

Here's the installation log:

C:\Ruby200\bin>gem install rmagick --platform=ruby -- --with-opt-lib=C:/Programfiler/ImageMagick-6.7.6-Q16/lib --with-opt-include=c:/Programfiler/ImageMagick-6.7.6-Q16/include
Fetching: rmagick-2.13.2.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-opt-lib=C:/Programfiler/ImageMagick-6.7.6-Q16/lib --with-opt-include=c:/Program
filer/ImageMagick-6.7.6-Q16/include'
This could take a while...
Successfully installed rmagick-2.13.2
Parsing documentation for rmagick-2.13.2
unable to convert "\x90" from ASCII-8BIT to UTF-8 for ext/RMagick/RMagick2.so, skipping
unable to convert "\xB4" from ASCII-8BIT to UTF-8 for ext/RMagick/rmagick.o, skipping
unable to convert "\xA0" from ASCII-8BIT to UTF-8 for ext/RMagick/rmdraw.o, skipping
unable to convert "\x9E" from ASCII-8BIT to UTF-8 for ext/RMagick/rmenum.o, skipping
unable to convert "\x87" from ASCII-8BIT to UTF-8 for ext/RMagick/rmfill.o, skipping
unable to convert "\xDC" from ASCII-8BIT to UTF-8 for ext/RMagick/rmilist.o, skipping
unable to convert "\xAA" from ASCII-8BIT to UTF-8 for ext/RMagick/rmimage.o, skipping
unable to convert "\xC6" from ASCII-8BIT to UTF-8 for ext/RMagick/rminfo.o, skipping
unable to convert "\xEA" from ASCII-8BIT to UTF-8 for ext/RMagick/rmmain.o, skipping
unable to convert "\x80" from ASCII-8BIT to UTF-8 for ext/RMagick/rmmontage.o, skipping
unable to convert "\xFB" from ASCII-8BIT to UTF-8 for ext/RMagick/rmpixel.o, skipping
unable to convert "\xC0" from ASCII-8BIT to UTF-8 for ext/RMagick/rmstruct.o, skipping
unable to convert "\xC1" from ASCII-8BIT to UTF-8 for ext/RMagick/rmutil.o, skipping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/RMagick2.so, skipping
Installing ri documentation for rmagick-2.13.2
Done installing documentation for rmagick (10 sec).
1 gem installed
Owner
bf4 commented Jul 24, 2014

Comment by mmaiza
Tuesday Feb 26, 2013 at 14:25 GMT


I will make sure that these are eliminated in the next release.

Owner
bf4 commented Jul 24, 2014

Comment by dicom
Wednesday Feb 27, 2013 at 07:13 GMT


Turns out this is actually an rdoc 4.0 issue, and it's actually not related to Ruby 2.0, as it will reproduce also on 1.9.3 (with rdoc 4.0).

Owner
bf4 commented Jul 24, 2014

Comment by dicom
Thursday Feb 28, 2013 at 07:32 GMT


Turns out it is possible to fix this in your gem after all.
For reference, you can check out how this issue was resolved for the narray gem:
masa16/narray#33

@linduxed linduxed closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment