On Wed, 3 Mar 2010 13:11:44 +0200 Antti-Juhani Kaijanaho wrote:

> On Tue, Mar 02, 2010 at 07:00:24PM +0100, Francesco Poli wrote:
> > With current testing (libgettext-ruby1.8/1.93.0-1.1) I obtain:
> > 
> > $ irb1.8 
> > irb(main):001:0> require 'gettext'
> > => true
> > irb(main):002:0> Locale.codeset
> > => "UTF-8"
> > irb(main):003:0> Locale.charset
> > => "UTF-8"
> > irb(main):004:0> exit
> > $
> 
> $ irb1.8
> irb(main):001:0> require 'gettext'
> => true
> irb(main):002:0> Locale.codeset
> NoMethodError: undefined method `codeset' for Locale:Module
>         from (irb):2
>         from /usr/lib/ruby/1.8/locale/taglist.rb:67
> irb(main):003:0> Locale.charset
> => "UTF-8"
> irb(main):004:0> exit
> $

Great, thanks for checking.    :-)

In the meanwhile, I searched for a bit of documentation and it seems
that the current sid version of libgettext-ruby1.8 (2.1.0-1) depends on
liblocale-ruby1.8 (which implements Locale.charset, but not
Locale.codeset), rather than using an internal locale handling as the
old version (1.93.0-1.1, which implements both Locale.charset and
Locale.codeset).

http://www.yotabanana.com/hiki/ruby-locale-howto.html#Gets+the+charset
seems to confirm that Locale.charset is the correct way to get the system
charset.

> 
> > If you do, then could you please try to edit line 588 of
> >   /usr/share/apt-listbugs/apt-listbugs/logic.rb
> > by applying the substitution s/codeset/charset/  ?
> 
> How can I test it without waiting for an upgrade with RC bugs?

This is a good question!   ;-)

One possible method could be downgrading an RC-buggy package and then
upgrading it again.

What I've just done is performing installations of RC-buggy packages
inside a throw-away sid chroot environment (managed by pbuilder).

I prepared a fix (which is basically the above-described substitution
at line 588 of /usr/share/apt-listbugs/apt-listbugs/logic.rb) and it
seems to fix the bug.
This fix will be included in the next apt-listbugs version.

Thanks again for reporting the problem.
Bye.


-- 
 http://www.inventati.org/frx/progs/scripts/pdebuild-hooks.html
 Need some pdebuild hook scripts?
..................................................... Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4

Attachment: pgpgvXXMq0Sl3.pgp
Description: PGP signature

Reply via email to