Skip to content

Warnings when building documentation for gems with compiled files on Ruby 2.0 #190

@dicom

Description

@dicom

Hello

So I just tried installing Ruby 2.0.0 on my system (Windows XP 32 bit) with the Rubyinstaller, and while installing a couple of gems that require compilation (using DevKit), I notice that a lot of encoding warnings are produced. I guess this is related to Ruby 2.0's move to UTF-8 as standard encoding for files. I originally thought this was a bug of the respective gems (masa16/narray#33), however, it may seem to actually be a RDOC issue instead?

Personally I experienced this with the NArray and RMagick gems. Command prompt output of the respective installs:

C:\Ruby200\bin>gem install narray --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed narray-0.6.0.7
Parsing documentation for narray-0.6.0.7
unable to convert "\x90" from ASCII-8BIT to UTF-8 for narray.so, skipping
unable to convert "\xC6" from ASCII-8BIT to UTF-8 for src/libnarray.a, skipping
unable to convert "\x98" from ASCII-8BIT to UTF-8 for src/na_array.o, skipping
unable to convert "\xDE" from ASCII-8BIT to UTF-8 for src/na_func.o, skipping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for src/na_index.o, skipping
unable to convert "\xBC" from ASCII-8BIT to UTF-8 for src/na_linalg.o, skipping
unable to convert "\xE6" from ASCII-8BIT to UTF-8 for src/na_math.o, skipping
unable to convert "\xBA" from ASCII-8BIT to UTF-8 for src/na_op.o, skipping
unable to convert "\xEE" from ASCII-8BIT to UTF-8 for src/na_random.o, skipping
unable to convert "\xB0" from ASCII-8BIT to UTF-8 for src/narray.o, skipping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for src/narray.so, skipping
Installing ri documentation for narray-0.6.0.7
Done installing documentation for narray (2 sec).
1 gem installed
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions