Using Debian GNU/Linux 8 (jessie), and RVM doing gem install sinatra shows conversion errors.
$ gem install sinatra
Fetching: rack-1.6.4.gem (100%)
Successfully installed rack-1.6.4
Fetching: rack-protection-1.5.3.gem (100%)
Successfully installed rack-protection-1.5.3
Fetching: sinatra-1.4.7.gem (100%)
Successfully installed sinatra-1.4.7
Parsing documentation for rack-1.6.4
Installing ri documentation for rack-1.6.4
Parsing documentation for rack-protection-1.5.3
Installing ri documentation for rack-protection-1.5.3
Parsing documentation for sinatra-1.4.7
unable to convert "\x89" from ASCII-8BIT to UTF-8 for lib/sinatra/images/404.png, skipping
unable to convert "\x89" from ASCII-8BIT to UTF-8 for lib/sinatra/images/500.png, skipping
Installing ri documentation for sinatra-1.4.7
Which ruby was installed on the machine?
Ruby 2.0.0p645 is used.
$ ruby --version
ruby 2.0.0p645 (2015-04-13 revision 50299) [i686-linux]
I tried installing Sinatra on a few different versions on Ruby. RVM on Mac OSX El Capitan
Ruby 2.0.0 -> unable to convert "\x89" from ASCII-8BIT to UTF-8 for lib/sinatra/images/404.png, skipping
Ruby 2.1.8 -> Success
Seems like this is an issue with rdoc gem. By default ruby 2.0.0 install rdoc 4.0.0. On ruby 2.1.0, rdoc 4.1.0 is installed.
A simple gem update rdoc makes this issue go away.
Please refer to this StackOverflow
With this, we can conclude that this is not a Sinatra bug.
Hope this helps
Closing this issue since this is not related to Sinatra per se, as explained above.
Most helpful comment
I tried installing Sinatra on a few different versions on Ruby. RVM on Mac OSX El Capitan
Ruby 2.0.0 ->
unable to convert "\x89" from ASCII-8BIT to UTF-8 for lib/sinatra/images/404.png, skippingRuby 2.1.8 -> Success
Seems like this is an issue with
rdocgem. By default ruby 2.0.0 installrdoc4.0.0. On ruby 2.1.0,rdoc4.1.0 is installed.A simple
gem update rdocmakes this issue go away.Please refer to this StackOverflow
With this, we can conclude that this is not a Sinatra bug.
Hope this helps