RubyGems 1.5.2 on Ruby 1.8 seems unaffected (but since 1.8 is
it might be just a bug covering other bug).
Note, that this error occurs when installing packages
UTF-8 characters in some fields that were built with RubyGems
Packages built using previous version of RubyGems are installed
There is a difference in specfiles, that might help in tracking
of this problem. Package i18n-inflector-2.5.0 was build with old
package i18n-inflector-2.5.1 with new RG. Both were installed
new RG, but in case of i18n-inflector-2.5.1 installation failed
with the error quoted in my previous post.
(I used Pastie since this markup makes backslashes with
character codes interpretable)
See: the authors line. New RubyGems produce
I don't know, maybe that's intended, but the new RG client
has some problems with installing such a gem when environment
locales are not set.
Since I am not in control of systems that are using my gem this
workaround cannot be applied by me.
Yesterday I've discovered that it may be related to psych
parser. When using syck parser whlie building gem the problem
dissapears during installation since UTF-8 characters are escaped
in a gem manifest file.
To apply the workaround the developer has to set the YAML engine
to syck in the Rakefile and/or gemspec:
if !defined?(YAML::ENGINE).nil? && YAML::ENGINE.respond_to?(:yamler)
YAML::ENGINE.yamler = 'syck'