[DRE-maint] Bug#670320: ruby-locale: fails to get available locale

Sebastian Ramacher s.ramacher at gmx.at
Tue Apr 24 23:14:16 UTC 2012


On 24/04/12 22:42, Yannick Roehlly wrote:
> 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> 

As far as I can tell this is only reproducible if LANGUAGE is set but empty. So
I guess KDE sets LANGUAGE to an empty value an Xfce does not.

Regards
-- 
Sebastian Ramacher

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20120425/eb50a9ab/attachment.pgp>


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