Trying to install www/rubygem-actionpack from ports collection results in an incompatible character set warning. N.B. I am using ruby 2.0 as the default ruby version How-To-Repeat: make install output below root@freebsd-vm:/usr/ports/www/rubygem-actionpack # make install ===> Installing for rubygem-actionpack-3.2.13 ===> rubygem-actionpack-3.2.13 depends on package: rubygem-activesupport>=3.2.13 - found ===> rubygem-actionpack-3.2.13 depends on package: rubygem-activemodel>=3.2.13 - found ===> rubygem-actionpack-3.2.13 depends on package: rubygem-builder>=3.0.0 - found ===> rubygem-actionpack-3.2.13 depends on package: rubygem-erubis>=2.7.0 - found ===> rubygem-actionpack-3.2.13 depends on package: rubygem-journey>=1.0.1 - found ===> rubygem-actionpack-3.2.13 depends on package: rubygem-rack>=1.4.0 - found ===> rubygem-actionpack-3.2.13 depends on package: rubygem-rack-cache>=1.2 - found ===> rubygem-actionpack-3.2.13 depends on package: rubygem-rack-test>=0.6.1 - found ===> rubygem-actionpack-3.2.13 depends on package: rubygem-sprockets>=2.2.2 - found ===> rubygem-actionpack-3.2.13 depends on file: /usr/local/bin/gem20 - found ===> rubygem-actionpack-3.2.13 depends on file: /usr/local/bin/ruby20 - found ===> Generating temporary packing list ===> Checking if www/rubygem-actionpack already installed Successfully installed actionpack-3.2.13 1 gem installed Installing RDoc documentation for actionpack-3.2.13... ERROR: While generating documentation for actionpack-3.2.13 .. MESSAGE: error generating ActionView/Helpers/NumberHelper.html: incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError) .. RDOC args: --op /usr/local/lib/ruby/gems/2.0/doc/actionpack-3.2.13/rdoc lib --title actionpack-3.2.13 Documentation --quiet *** [do-install] Error code 1 Stop in /usr/ports/www/rubygem-actionpack.
Responsible Changed From-To: freebsd-ports-bugs->ruby Over to maintainer (via the GNATS Auto Assign Tool)
This is a language issue. I haven't decided what the right way to solve it is yet. The problem is FreeBSD doesn't set a language by default, so ruby assumes ASCII. Try setting the environment variable LC_ALL=en_US.UTF-8 (or whatever language you prefer) before building. Steve
Responsible Changed From-To: ruby->swills I'll take it.
My previous comment was mistaken. This may have in fact been caused by the presence of the rdoc gem. I've made some changes since then and am unable to reproduce the issue in my test tree where 2.0 is default. I expect the issue may return when rdoc is updated. Steve
State Changed From-To: open->closed Closing for now, will test this when rdoc is updated.