Skip to content

Can't install on ubuntu server when locale is not set. (ruby 1.9.2 only) #3

Closed
sarahmei opened this Issue Feb 26, 2011 · 3 comments

2 participants

@sarahmei
smei@ContinuousIntegration$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

smei@ContinuousIntegration$ rvm use ruby-1.9.2@diaspora

smei@ContinuousIntegration$ gem install i18n-inflector
ERROR:  While executing gem ... (ArgumentError)
    invalid byte sequence in US-ASCII

smei@ContinuousIntegration$ sudo update-locale
# this creates /etc/default/locale, which did not exist before.

smei@ContinuousIntegration$ sudo vi /etc/default/locale
# add:
LANG="en_US.UTF-8"
# log out, log back in


smei@ContinuousIntegration$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

smei@ContinuousIntegration$ rvm use ruby-1.9.2@diaspora

smei@ContinuousIntegration$ gem install i18n-inflector
Installing gem i18n-inflector-2.5.1
Successfully installed i18n-inflector-2.5.1
1 gem installed
@siefca
Owner
siefca commented Feb 27, 2011

The version 2.5.1 has been built with new Rubygems package. Packages built using previous Rubygems (see i18n-inflector version 2.5.0) don't have this problem. The error occurs when there is UTF-8 character in some gemspec field (in this example my name).

Problem report:

http://help.rubygems.org/discussions/problems/501-broken-utf-8-handling-in-newest-rubygems-when-environment-locales-are-not-set

@siefca
Owner
siefca commented Jul 27, 2011
@siefca siefca was assigned Jul 27, 2011
@siefca
Owner
siefca commented Aug 9, 2011

It's probably psych parsing issue. I released new gems forcing RubyGems to use syck parser and author field has properly escaped UTF-8 characeters.

@siefca siefca closed this Aug 9, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.