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

2012-04-25 Thread Yannick Roehlly
Le mercredi 25 avril 2012 01:14:16 Sebastian Ramacher a écrit :
 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.

Hi Sebastian,

In fact, you're right.  The LANGUAGE env. variable is never defined except 
under KDE where it has an empty value.  But the strange thing is that with 
2.0.5-2 package, it's not a problem.

Regards,

Yannick

-- 
Writing about music is like dancing about architecture.
-- Frank Zappa




___
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


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

2012-04-25 Thread tv.deb...@googlemail.com

Hi,

seeing the same problem here. As a workaround I put a script to export 
LANGUAGE= to it's correct value in ~/.kde/env/ as recommended in [1]. 
It works with kde terminal emulator like Konsole or Yakuake.



[1] http://userbase.kde.org/Session_Environment_Variables/en



___
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


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

2012-04-24 Thread Yannick Roehlly
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