Package: ruby-locale
Version: 2.0.5-3
Severity: normal
Hi,
With the update from 2.0.5-2 to 2.0.5-3 I encounter some strange behaviour.
Under KDE, the programmes that use ruby-locale fails. For instance, on irb:
irb(main):001:0 require 'locale'
= true
irb(main):002:0 Locale.current
= []
irb(main):003:0 Locale.candidates
NoMethodError: undefined method `size' for nil:NilClass
from /usr/lib/ruby/vendor_ruby/locale.rb:239:in `collect_candidates'
from /usr/lib/ruby/vendor_ruby/locale.rb:222:in `candidates'
from (irb):3
irb(main):004:0
rbbr and apt-listbugs (when launching aptitude after a 'su' instead of a 'su -'
fail in the same way.
The strange thing is that it's not the case when using a different desktop
(e.g. XFCE). There is no differences in the locale settings.
If I revert to 2.0.5-2, everything works.
The only difference I found between the two versions, except the file location,
is in language.rb:
--- ./locale.old/info/language.rb 2010-02-25 19:03:57.0 +0100
+++ ./locale.new/info/language.rb 2012-04-21 15:38:40.0 +0200
@@ -74,11 +74,7 @@
# Returns the two or three code.
def to_s
-if two_code and two_code.size 0
- two_code
-else
- three_code
-end
+two_code || tree_code
end
# Returns this object is valid as ISO 639 data.
But even if I replace the file, it still fails.
I'm a little perplex where to look for the bug. If you have and idea...
Regards,
Yannick
PS: I left the severity to 'normal' but maybe it should be higher as when
running aptitude after a simple 'su' and having apt-listbugs installed,
aptitude can't install anything as apt-listbugs raises an error.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.3.0-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ruby-locale depends on:
ii ruby 4.8
ii ruby1.8 [ruby-interpreter]1.8.7.358-2
ii ruby1.9.1 [ruby-interpreter] 1.9.3.0-2
ruby-locale recommends no packages.
ruby-locale suggests no packages.
-- no debconf information
___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers