Your message dated Thu, 26 Apr 2012 22:14:08 +0000
with message-id <[email protected]>
and subject line Bug#600713: fixed in ruby-locale 2.0.5-4
has caused the Debian Bug report #600713,
regarding liblocale-ruby1.8: Locale.current= can't handle non-string params
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
600713: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=600713
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: liblocale-ruby1.8
Version: 2.0.5-2
Severity: normal

Locale.current= doesn't check the param, so code like

bak = Locale.current
Locale.current = 'C'
#...something that needs locale C
Locale.current = bak
GetText.gettext("string")

fails with the mysterious
#<NoMethodError: undefined method `downcase' for [#<Locale::Tag::Posix: 
en_US.UTF-8>]:Loca
/usr/lib/ruby/1.8/locale/tag/simple.rb:78:in `initialize'
/usr/lib/ruby/1.8/locale/tag/common.rb:59:in `initialize'
/usr/lib/ruby/1.8/locale/tag/irregular.rb:35:in `new'
/usr/lib/ruby/1.8/locale/tag/irregular.rb:35:in `_unmemoized_convert_to'
/usr/lib/ruby/1.8/locale/util/memoizable.rb:73:in `convert_to'
/usr/lib/ruby/1.8/locale/util/memoizable.rb:87:in `_memoize'
/usr/lib/ruby/1.8/locale/util/memoizable.rb:72:in `convert_to'
(eval):2:in `_unmemoized_to_common'
/usr/lib/ruby/1.8/locale/util/memoizable.rb:73:in `to_common'
/usr/lib/ruby/1.8/locale/util/memoizable.rb:95:in `_memoize_dup'
/usr/lib/ruby/1.8/locale/util/memoizable.rb:87:in `_memoize'
/usr/lib/ruby/1.8/locale/util/memoizable.rb:95:in `_memoize_dup'
/usr/lib/ruby/1.8/locale/util/memoizable.rb:72:in `to_common'
/usr/lib/ruby/1.8/locale.rb:229:in `send'
/usr/lib/ruby/1.8/locale.rb:229:in `collect_candidates'
/usr/lib/ruby/1.8/locale.rb:229:in `collect'
/usr/lib/ruby/1.8/locale.rb:229:in `collect_candidates'
/usr/lib/ruby/1.8/locale.rb:222:in `candidates'
/usr/lib/ruby/1.8/gettext/runtime/textdomain_manager.rb:78:in `each_textdomains'
/usr/lib/ruby/1.8/gettext/runtime/textdomain_manager.rb:102:in 
`translate_singluar_message
/usr/lib/ruby/1.8/gettext.rb:128:in `gettext'


Because tag/simple.rb:intialize calls
@language = @language.downcase if @language
@region = @region.upcase if @region

expecting them to be strings, but because of the Locale.current = 
Locale.current, @language is Locale::Tag::Posix .


This simple patch to locale.rb: set_current seems to fix it:

--- /usr/lib/ruby/1.8/locale.rb.bak     2010-10-19 15:38:50.000000000 +0200
+++ /usr/lib/ruby/1.8/locale.rb 2010-10-19 15:39:05.000000000 +0200
@@ -145,7 +145,7 @@
     if tags[0]
       languages = Locale::TagList.new
       tags.each do |tag|
-        languages << create_language_tag(tag)
+        languages << create_language_tag(tag.to_s)
       end
     end
     Thread.current[:current_languages] = languages




-- System Information:
Debian Release: 5.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686-bigmem (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages liblocale-ruby1.8 depends on:
ii  libruby1.8              1.8.7.72-3lenny1 Libraries necessary to run Ruby 1.

liblocale-ruby1.8 recommends no packages.

liblocale-ruby1.8 suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: ruby-locale
Source-Version: 2.0.5-4

We believe that the bug you reported is fixed in the latest version of
ruby-locale, which is due to be installed in the Debian FTP archive:

liblocale-ruby1.8_2.0.5-4_all.deb
  to main/r/ruby-locale/liblocale-ruby1.8_2.0.5-4_all.deb
liblocale-ruby1.9.1_2.0.5-4_all.deb
  to main/r/ruby-locale/liblocale-ruby1.9.1_2.0.5-4_all.deb
liblocale-ruby_2.0.5-4_all.deb
  to main/r/ruby-locale/liblocale-ruby_2.0.5-4_all.deb
ruby-locale_2.0.5-4.debian.tar.gz
  to main/r/ruby-locale/ruby-locale_2.0.5-4.debian.tar.gz
ruby-locale_2.0.5-4.dsc
  to main/r/ruby-locale/ruby-locale_2.0.5-4.dsc
ruby-locale_2.0.5-4_all.deb
  to main/r/ruby-locale/ruby-locale_2.0.5-4_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitry Borodaenko <[email protected]> (supplier of updated ruby-locale 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 26 Apr 2012 21:27:28 +0300
Source: ruby-locale
Binary: ruby-locale liblocale-ruby liblocale-ruby1.8 liblocale-ruby1.9.1
Architecture: source all
Version: 2.0.5-4
Distribution: unstable
Urgency: low
Maintainer: Debian Ruby Extras Maintainers 
<[email protected]>
Changed-By: Dmitry Borodaenko <[email protected]>
Description: 
 liblocale-ruby - Transitional package for ruby-locale
 liblocale-ruby1.8 - Transitional package for ruby-locale
 liblocale-ruby1.9.1 - Transitional package for ruby-locale
 ruby-locale - Pure ruby locale library
Closes: 600713 670320
Changes: 
 ruby-locale (2.0.5-4) unstable; urgency=low
 .
   * Bugfix release, fixes are for:
     - environmental variable LANGUAGE exists, but
       isn't set (Closes: #670320)
     - Locale.current= can't accept value from previuos
       call to Locale.current (Closes: #600713)
Checksums-Sha1: 
 8359271a84212cabe01846a43eb3897bb94e0072 1569 ruby-locale_2.0.5-4.dsc
 5144b6cb4f67c00ee78c9bba604db668eb50d2ab 4658 ruby-locale_2.0.5-4.debian.tar.gz
 936878580e07f0e83deaa26cae5c5828ce9b9e8e 93068 ruby-locale_2.0.5-4_all.deb
 7df9d54879ff47f3fd733efd8e827f54fdba220f 5324 liblocale-ruby_2.0.5-4_all.deb
 319f44c94bf4d4deac63a52ea41a8811abb09116 5330 liblocale-ruby1.8_2.0.5-4_all.deb
 d100624f3ea4433b3a5f60103489e61b158b1685 5332 
liblocale-ruby1.9.1_2.0.5-4_all.deb
Checksums-Sha256: 
 1c9d4bf566001b042cd990e3ceddf66c0373f0902cfc10da2ca6c8e49ed2893f 1569 
ruby-locale_2.0.5-4.dsc
 952840b4994d6c9c2e16646bf87939de3c24668c3558a496ed7b308116315635 4658 
ruby-locale_2.0.5-4.debian.tar.gz
 7f584c8ec7952710f12df95db7a73ad340f0ab498996359d3b2ac9008932453e 93068 
ruby-locale_2.0.5-4_all.deb
 9b53e8df52353977b99832dc5fd5d675f999518665c88deeef9fb49027dcde5c 5324 
liblocale-ruby_2.0.5-4_all.deb
 4905553a521adda56237c734fc557131e26cadd23394f1009fd541ab5c5c27f9 5330 
liblocale-ruby1.8_2.0.5-4_all.deb
 16333745903afb77591b2b457396075a7146001788b8a1ac2d41a6c08be578fd 5332 
liblocale-ruby1.9.1_2.0.5-4_all.deb
Files: 
 e41b8dc2c897fc56aa1152bedff55459 1569 ruby optional ruby-locale_2.0.5-4.dsc
 c3cb312bb1810313a0e90404d033d334 4658 ruby optional 
ruby-locale_2.0.5-4.debian.tar.gz
 538f82c2e66a9d14d66bea71eb78cf40 93068 ruby optional 
ruby-locale_2.0.5-4_all.deb
 b3c5234dca264aa8e3aa2f24fd5aaae0 5324 oldlibs extra 
liblocale-ruby_2.0.5-4_all.deb
 eb64585eaf47b411f52d4c7b8e973ffe 5330 oldlibs extra 
liblocale-ruby1.8_2.0.5-4_all.deb
 7d9dd0e9bdba0a9439d892b63ecb7370 5332 oldlibs extra 
liblocale-ruby1.9.1_2.0.5-4_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEAREIAAYFAk+ZvOMACgkQxhqJXoXuPg71kgCgzZbWe2YSZpcy9RbQHQiB+osK
nXgAoKxrrCn/FJFqx412dBaMfZXrBsSZ
=8fqo
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to