[DRE-maint] Bug#690572: localization takes $LANG into account, but ignores $LC_MESSAGES

Jérémy Bobbio lunar at debian.org
Sat Mar 16 23:14:25 UTC 2013


Control: reassign -1 ruby-locale 2.0.5-6

Francesco Poli:
> I can't see anything in apt-listbugs *itself* that directly handles
> locale environment variables. I believe that this "dirty work" is
> delegated to the ruby-gettext library.
> I am consequently reassigning your bug report to the ruby-gettext
> package.

The bug is actually in ruby-locale:

$ locale
LANG=
LANGUAGE=
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=

$ LC_CTYPE=it_IT.UTF-8 ruby1.8 test/test_detect_general.rb
Loaded suite test/test_detect_general
Started
..F
===============================================================================
Failure:
test_default(TestDetectGeneral)
test/test_detect_general.rb:129:in `test_default'
     126:     return unless /linux|bsd/ =~ RUBY_PLATFORM
     127:     Locale.set_default("yo_NG")
     128:     assert_equal Locale::Tag.parse("yo_NG"), Locale.default
  => 129:     assert_equal Locale::Tag.parse("yo_NG"), Locale.current[0]
     130:     Locale.set_default(nil)
     131:
     132:     Locale.default = "fr"
<#<Locale::Tag::Simple: yo_NG>> expected but was
<#<Locale::Tag::Posix: it_IT.UTF-8>>
===============================================================================
F
===============================================================================
Failure:
test_lang(TestDetectGeneral)
test/test_detect_general.rb:54:in `test_lang'
     51: 
     52:     lang = Locale.current[0]
     53:     assert_equal Locale::Tag::Posix, lang.class
  => 54:     assert_equal "ja", lang.language
     55:     assert_equal "JP", lang.region
     56:     assert_equal "eucJP", lang.charset
     57:     assert_equal Locale::Tag::Posix.new("ja", "JP", "eucJP"),
lang
<"ja"> expected but was
<"it">
===============================================================================
...F
===============================================================================
Failure:
test_lc_messages(TestDetectGeneral)
test/test_detect_general.rb:38:in `test_lc_messages'
     35: 
     36:     lang = Locale.current[0]
     37:     assert_equal Locale::Tag::Posix, lang.class
  => 38:     assert_equal "ja", lang.language
     39:     assert_equal "JP", lang.region
     40:     assert_equal "eucJP", lang.charset
     41:     assert_equal Locale::Tag::Posix.new("ja", "JP", "eucJP"),
lang
<"ja"> expected but was
<"it">
===============================================================================
.

Finished in 0.024338 seconds.

9 tests, 43 assertions, 3 failures, 0 errors, 0 pendings, 0 omissions, 0
notifications
66.6667% passed

-- 
Jérémy Bobbio                        .''`. 
lunar at debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20130317/4cf72ea4/attachment.pgp>


More information about the Pkg-ruby-extras-maintainers mailing list