rmagick-temp / rmagick

An interface to the ImageMagick and GraphicsMagick image processing libraries.
http://rmagick.rubyforge.org/
MIT License
790 stars 102 forks source link

Ruby 2.0 warnings #69

Open dicom opened 11 years ago

dicom commented 11 years ago

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
mmaiza commented 11 years ago

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

dicom commented 11 years ago

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).

dicom commented 11 years ago

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: https://github.com/masa16/narray/issues/33