Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
sarahmei opened this Issue · 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

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 siefca was assigned
@siefca
Owner

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
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.