Re: [DRE-maint] Bug#892090: apt-listbugs: warnings with ruby 2.5

2018-03-07 Thread Francesco Poli
Control: reassign -1 ruby-soap4r 2.0.5-3
Control: affects -1 + apt-listbugs


On Mon, 5 Mar 2018 12:23:31 +0100 Vincent Lefevre wrote:

> Package: apt-listbugs
> Version: 0.1.24
> Severity: normal
> 
> I now get warnings from ruby. I suppose that this is due to the
> upgrade to ruby 2.5.
> 
> [...]
> Retrieving bug reports... 
> 0%/usr/lib/ruby/vendor_ruby/soap/mapping/encodedregistry.rb:150: warning: 
> constant ::Fixnum is deprecated
> /usr/lib/ruby/vendor_ruby/soap/mapping/encodedregistry.rb:216: warning: 
> constant ::Fixnum is deprecated
> Retrieving bug reports... Done
> [...]

Hello Vincent,
thanks for your bug report.

Since

  $ dpkg -S /usr/lib/ruby/vendor_ruby/soap/mapping/encodedregistry.rb
  ruby-soap4r: /usr/lib/ruby/vendor_ruby/soap/mapping/encodedregistry.rb

we can conclude that the warnings come from the ruby-soap4r library.

And indeed, a bug report (#889713) had already been filed against
package ruby-soap4r and closed by an upload to Debian unstable
(ruby-soap4r/2.0.5-4).

I am reassigning your bug report to package ruby-soap4r, with the
intention to merge it with #889713...

Bye.

-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpXKYwL818LE.pgp
Description: PGP signature
___
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#892090: apt-listbugs: warnings with ruby 2.5

2018-03-05 Thread Francesco Poli
Control: affects 889713 + apt-listbugs
Control: forcemerge 889713 -1


On Mon, 5 Mar 2018 22:24:06 +0100 Francesco Poli wrote:

[...]
> with the intention to merge it with #889713...
[...]

Here's the merging, which should also close the bug report.

Bye.

-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgp4LG4StoSe8.pgp
Description: PGP signature
___
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

Re: [DRE-maint] Bug#888649: apt-listbugs: Fails on ipv6

2018-02-06 Thread Francesco Poli
Control: reassign -1 ruby-httpclient 2.8.3-1
Control: affects -1 + apt-listbugs
Control: tags -1 - moreinfo



On Mon, 29 Jan 2018 21:08:04 +0100 eingousef wrote:

> On Sun, Jan 28, 2018 at 03:19:04PM +0100, Francesco Poli wrote:
> > [...]
> > > Versions of packages apt-listbugs recommends:
> > > pn  ruby-httpclient  
> > [...]
> >
> > I see that you do not have the recommended ruby-httpclient package
> > installed: could you please try to install it with
> >
> >   # aptitude install ruby-httpclient
> >
> > and see whether you still have issues with your IPv6 connection?
> >
> > Please let me know.
> > Thanks for your time and for using apt-listbugs!
> >
> >
>
> After installing that package it still fails but it's more verbose:
>
> Performing actions...
> Récupération des rapports de bogue… 0% Echec
> Échec de récupération des rapports de bogue depuis le serveur avec le message 
> d'erreur suivant :
> Err : HTTPClient::KeepAliveDisconnected:
> Cela peut venir d'une connexion réseau inactive, de problèmes de serveurs 
> mandataires ou de l'arrêt du serveur du
> BTS lui-même. Veuillez vérifier la configuration réseau et recommencer
> Réessayer de télécharger les informations du bogue ? [Y/n]
> Un paquet à la fois ? [Y/n]
> Un rapport de bogue à la fois ? [Y/n]
> Récupération des rapports de bogue… Fait



Dear Debian Ruby Extras Maintainers
I am reassigning a [bug](https://bugs.debian.org/888649) to package
ruby-httpclient, since a user of apt-listbugs is having issues with an
IPv6 connection.
It seems that a similar issue shows up without ruby-httpclient (when
apt-listbugs uses the HTTP library from Ruby standard library), but
ruby-httpclient produces a more verbose error message.

I have too little experience in debugging HTTP connection issues, and
zero experience with IPv6: I am not sure whether the problem lies in
some IPv6 link misconfiguration or in an actual bug of the Ruby HTTP
client libraries.

Could you please help the user in the investigation?

Thanks for your time and dedication!
Bye.

--
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpNsQimpc5qr.pgp
Description: PGP signature
___
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

Re: [DRE-maint] Bug#869070: apt-listbugs does not honor Acquire::http::TimeOut

2017-09-15 Thread Francesco Poli
Control: reassign -1 ruby-soap4r 2.0.5-3
Control: affects -1 + apt-listbugs



On Tue, 1 Aug 2017 23:27:17 +0200 Francesco Poli wrote:

[...]
> On Tue, 1 Aug 2017 10:34:00 +0200 Vincent Lefevre wrote:
> 
> > On 2017-08-01 10:24:13 +0200, Vincent Lefevre wrote:
> > > This solves the timeout issue, but actually the bug is worse than
> > > I thought. After setting
> > > 
> > > @drv.options["protocol.http.connect_timeout"] = 10
> > > @drv.options["protocol.http.send_timeout"] = 10
> > > @drv.options["protocol.http.receive_timeout"] = 10
> > > 
> > > I get:
> > > 
> > > Retrieving bug reports... 0% Fail
> > > Error retrieving bug reports from the server with the following error 
> > > message:
> > > E: execution expired
> > > It could be because your network is down, or because of broken proxy 
> > > servers, or the BTS server itself is down. Check network configuration 
> > > and try again
> > > Retry downloading bug information? [Y/n] 
> > > 
> > > i.e. it doesn't fallback to the IPv4 address, contrary to what
> > > other tools do!
> > 
> > Well, without the above change, I get the usual 2-minute timeout
> > per IP address, and the fallback to the first IP address that works
> > (here, IPv4). I assume that this is because the timeout occurs at
> > the socket level instead of the protocol level, thus not handled
> > by the same code.
> 
> Then the situation is less easy than I was hoping...

Hello Debian Ruby Extras Maintainers,
I am reassigning a [bug report] filed against package apt-listbugs,
where the submitter (Vincent) would like to be able to configure the
SOAP http timeout, in order to shorten his wait for the fallback to the
first IP address that works.

[bug report]: <https://bugs.debian.org/869070>

Unfortunately, from a test that I suggested, it turned out that setting
the protocol.http.* timeout options for ruby-soap4r does not cause the
expected behavior.

During my summer vacations (and after them), I made some attempts to
search for documentation about these ruby-soap4r timeout, but I failed
to find a clear explanation of what actually happens when one of these
timeouts is reached.

Hence, I am asking to you: why does the described behavior (see the bug
log) happen? should ruby-soap4r behave as Vincent expected?

Please clarify and/or fix the ruby-soap4r behavior and/or forward this
bug report upstream.
Thanks for your time!

Bye.

-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpotbdRJmQ8K.pgp
Description: PGP signature
___
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#840878: ruby-gettext: rxgettext --wrap breaks words!

2016-10-15 Thread Francesco Poli (wintermute)
Package: ruby-gettext
Version: 3.2.2-1
Severity: normal
Tags: patch

Hello,
I noticed that rxgettext, when used with the --wrap option, wraps
long message lines by breaking words.

I think this is awkward and should be avoided.
Wrapping of long message lines should be performed by searching the
nearest whitespace before the page width boundary and breaking there.

I prepared a patch to implement the desired behavior.
It is attached (file wrap-without-breaking-words.diff.gz).

My patch only changes the regular expression used to perform the
line scanning.
The new regexp consists of three alternatives:

  * the first alternative deals with chunks which reach the end of
a line and whose length is less than or equal to the page width:
these chunks will not be broken any further

  * the second alternative deals with the (rare) chunks which consist
of a single word whose length is greater than or equal to the page
width: these chunks will be considered as unbreakable (even though
this means that the output will include a line longer than the
page width, as a rare exception to the general wrapping rule)

  * the third alternative deals with chunks ending with a whitespace
and whose length is less than or equal to the page width: these
chunks will be as large as possible (regexp repetition matching
is greedy by default) and will not be broken any further

The regexp behavior is shown in the attached little test script
(file test.rb.gz).

Please apply my patch and/or forward it upstream.

Thanks for your time!


N.B.: I am not sure my patch is creative enough to be copyrighted by
  me; at any rate, I hereby release both my patch and the little
  test script under the same licensing terms as the po_entry.rb
  file (that is to say: Ruby or GPL-2 or LGPL-3+).


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ruby-gettext depends on:
ii  ruby 1:2.3.0+4
ii  ruby-locale  2.1.2-1
ii  ruby-text1.3.0-1

ruby-gettext recommends no packages.

ruby-gettext suggests no packages.

-- no debconf information


test.rb.gz
Description: application/gzip


wrap-without-breaking-words.diff.gz
Description: application/gzip
___
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#838940: rdtool: rd2man-lib.rb messes up with following DescListItem, if Description is multi-TextBlock

2016-09-26 Thread Francesco Poli (wintermute)
Package: rdtool
Version: 0.6.38-4
Severity: important

Hello again,
I think I found one more bug in rd2man-lib.rb .

Steps to reproduce with the attached trivial Ruby Document file:

  $ rd2 -r rd/rd2html-lib.rb -o desc desc.rd

Everything's fine. The resulting HTML file looks OK:

  $ sensible-browser desc.html

But, if I want to get a man page:

  $ rd2 -r rd/rd2man-lib.rb -o desc desc.rd

the resulting man page is:

  $ cat desc.1 
  .\" DO NOT MODIFY THIS FILE! it was generated by rd2
  .TH DESC 1 "September 2016"
  .TP
  .fi
  .B
  Term
  Description.

  More description..TP
  .fi
  .B
  Another term
  Another description.

which lacks the newline character before the second .TP
causing

  More description.
  .TP

to become

  More description..TP

Visualizing the man page confirms that the second DescListItem is not
rendered correctly:

  $ man ./desc.1


Is there anything I failed to understand?

If this is indeed a bug in rd2man-lib.rb, please investigate the issue
and fix it, and/or forward my bug report upstream.

Thanks for your time.
Bye!


P.S.: I think the attached test case is so trivial that it is not copyrighted.
  Hence no license should be needed, for the file to be copied, modified,
  and/or distributed. Anyway, should this turn out to be false, I hereby
  grant premission to deal with the file under the terms of the Expat/MIT
  license 


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages rdtool depends on:
ii  ruby 1:2.3.0+4
ii  ruby-rd  0.6.38-4

rdtool recommends no packages.

rdtool suggests no packages.

-- no debconf information


desc.rd.gz
Description: application/gzip
___
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#836801: rdtool: rd2man-lib.rb crashes on MethodListItem

2016-09-05 Thread Francesco Poli (wintermute)
Package: rdtool
Version: 0.6.38-4
Severity: important

Hello and thanks for maintaining rdtool in Debian!

I think I found a bug in rd2man-lib.rb .
Steps to reproduce with the attached trivial Ruby Document file:

  $ rd2 -r rd/rd2html-lib.rb -o bar bar.rd

Everything's fine. The resulting HTML file looks OK:

  $ sensible-browser bar.html

But, if I want to get a man page:

  $ rd2 -r rd/rd2man-lib.rb -o bar bar.rd
  /usr/lib/ruby/vendor_ruby/rd/rd2man-lib.rb:127:in `apply_to_MethodListItem': 
undefined method `join' for "bar#run()":String (NoMethodError)
  from /usr/lib/ruby/vendor_ruby/rd/visitor.rb:64:in 
`visit_MethodListItem'
  from /usr/lib/ruby/vendor_ruby/rd/methodlist.rb:25:in `accept'
  from /usr/lib/ruby/vendor_ruby/rd/visitor.rb:20:in `block in 
visit_children'
  from /usr/lib/ruby/vendor_ruby/rd/element.rb:50:in `block in 
each_child'
  from /usr/lib/ruby/vendor_ruby/rd/element.rb:49:in `each'
  from /usr/lib/ruby/vendor_ruby/rd/element.rb:49:in `each_child'
  from /usr/lib/ruby/vendor_ruby/rd/visitor.rb:19:in `visit_children'
  from (eval):2:in `visit_MethodList'
  from /usr/lib/ruby/vendor_ruby/rd/methodlist.rb:9:in `accept'
  from /usr/lib/ruby/vendor_ruby/rd/visitor.rb:20:in `block in 
visit_children'
  from /usr/lib/ruby/vendor_ruby/rd/element.rb:50:in `block in 
each_child'
  from /usr/lib/ruby/vendor_ruby/rd/element.rb:49:in `each'
  from /usr/lib/ruby/vendor_ruby/rd/element.rb:49:in `each_child'
  from /usr/lib/ruby/vendor_ruby/rd/visitor.rb:19:in `visit_children'
  from (eval):2:in `visit_DocumentElement'
  from /usr/lib/ruby/vendor_ruby/rd/element.rb:151:in `accept'
  from /usr/lib/ruby/vendor_ruby/rd/tree.rb:79:in `accept'
  from /usr/lib/ruby/vendor_ruby/rd/visitor.rb:14:in `visit'
  from /usr/lib/ruby/vendor_ruby/rd/rd2man-lib.rb:39:in `visit'
  from /usr/bin/rd2:247:in `'

and no output is obtained.

Is there anything I failed to understand?

If this is indeed a bug in rd2man-lib.rb, please investigate the issue
and fix it, and/or forward my bug report upstream.

Thanks for your time.
Bye.


P.S.: I think the attached test case is so trivial that it is not copyrighted.
  Hence no license should be needed, for the file to be copied, modified,
  and/or distributed. Anyway, should this turn out to be false, I hereby
  grant premission to deal with the file under the terms of the Expat/MIT
  license 


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages rdtool depends on:
ii  ruby 1:2.3.0+4
ii  ruby-rd  0.6.38-4

rdtool recommends no packages.

rdtool suggests no packages.

-- no debconf information


bar.rd.gz
Description: application/gzip
___
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#827835: What's the status of this RC bug?

2016-07-15 Thread Francesco Poli
Hello,
I must confess that I am beginning to be mildly worried about
bug #827835: this serious bug report was filed back on June,
the 21st and appears to be still unaddressed without any
visible activity.

Package ruby-xmlparser risks to be autoremoved (along with its
reverse dependencies, among which apt-listbugs, which I maintain),
because of this bug.

Could you please clarify what is the status of this RC bug?
Is it going to be fixed soon?

Please let me know.
Thanks for your time and dedication!


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpnO7ltEQvjN.pgp
Description: PGP signature
___
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#819081: ruby-xmlparser ships without a gemspec file

2016-04-11 Thread Francesco Poli
On Wed, 23 Mar 2016 15:51:32 +0100 Matthias Klose wrote:

> Package: ruby-xmlparser
> Version:  0.7.3-1
> Severity: serious
> Tags: sid stretch
> 
> ruby-xmlparser ships without a gemspec file, making it useless to fulfil 
> dependencies.

Hello Debian Ruby Extras Maintainers!

I apologize for bothering you, but I am beginning to worry about
bug #819081, which risks to cause the auto-removal of ruby-xmlparser
from testing.
Its reverse dependencies would also be kicked out, and I am the
maintainer of apt-listbugs (as you probably know), which depends on
ruby-xmlparser...

To my non-expert eyes, bug #819081 looks almost trivial to fix.
Nonetheless, I fail to see any (public) activity towards its
resolution...
Are there any difficulties that I don't understand?

Please clarify and/or (better yet) please fix this bug as soon as
possible.

Thanks a lot for your time and dedication.
Bye.


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgp48mpBgp5ig.pgp
Description: PGP signature
___
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#799194: ruby-gettext: may return rubbish when LANGUAGE is set and LC_CTYPE='C'

2015-09-16 Thread Francesco Poli (wintermute)
Package: ruby-gettext
Version: 3.1.6-1
Severity: normal

Hello!
As discussed on bug #799050 [1] and on debian-ruby@l.d.o [2], I've
found a weird behavior of ruby-gettext.

[1] https://bugs.debian.org/799050#22
[2] https://lists.debian.org/debian-ruby/2015/09/msg00042.html

Steps to reproduce (with apt-listbugs/0.1.17 installed)

  $ locale
  LANG=en_US.UTF-8
  LANGUAGE=en_US:en
  LC_CTYPE="en_US.UTF-8"
  LC_NUMERIC="en_US.UTF-8"
  LC_TIME="en_US.UTF-8"
  LC_COLLATE="en_US.UTF-8"
  LC_MONETARY="en_US.UTF-8"
  LC_MESSAGES="en_US.UTF-8"
  LC_PAPER="en_US.UTF-8"
  LC_NAME="en_US.UTF-8"
  LC_ADDRESS="en_US.UTF-8"
  LC_TELEPHONE="en_US.UTF-8"
  LC_MEASUREMENT="en_US.UTF-8"
  LC_IDENTIFICATION="en_US.UTF-8"
  LC_ALL=
  $ ruby -e 'require "gettext" ; GetText::bindtextdomain("apt-listbugs") ; puts 
GetText.gettext("Forwarded")'
  Forwarded
  $ LANGUAGE='fr' ruby -e 'require "gettext" ; 
GetText::bindtextdomain("apt-listbugs") ; puts GetText.gettext("Forwarded")'
  Transférés
  $ LANGUAGE='fr' ruby -e 'require "gettext" ; 
GetText::bindtextdomain("apt-listbugs") ; puts 
GetText.gettext("Forwarded").encoding'
  UTF-8

Everything's fine so far.

  $ LANGUAGE='fr' LC_CTYPE='C' ruby -e 'require "gettext" ; 
GetText::bindtextdomain("apt-listbugs") ; puts 
GetText.gettext("Forwarded").encoding'
  ASCII-8BIT

Here the encoding is wrong and the content of the returned string
includes rubbish characters:

  $ LANGUAGE='fr' LC_CTYPE='C' irb
  irb(main):001:0> require "gettext"
  => true
  irb(main):002:0> GetText::bindtextdomain("apt-listbugs")
  [...]
  irb(main):003:0> GetText.gettext("Forwarded")
  => "Transf\xC3\xA9r\xC3\xA9s"
  irb(main):004:0> exit

The awkward finding is that, if I print the string, it gets magically
converted back to UTF-8:

  $ LANGUAGE='fr' LC_CTYPE='C' ruby -e 'require "gettext" ; 
GetText::bindtextdomain("apt-listbugs") ; puts GetText.gettext("Forwarded")'
  Transférés

But I cannot compute the width of the string with ruby-unicode:

  $ LANGUAGE='fr' LC_CTYPE='C' ruby -e 'require "gettext" ; 
GetText::bindtextdomain("apt-listbugs") ; require "unicode" ; puts 
Unicode.width(GetText.gettext("Forwarded"))'
  -e:1:in `width': "\xC3" from ASCII-8BIT to UTF-8 
(Encoding::UndefinedConversionError)
  from -e:1:in `'

What's wrong?
Please investigate and/or forward my bug report upstream.

Thanks for your time!

  
-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.1.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages ruby-gettext depends on:
ii  ruby1:2.1.5.1
ii  ruby-locale 2.1.0-3
ii  ruby-text   1.3.0-1
ii  ruby2.1 [ruby-interpreter]  2.1.5-4
ii  ruby2.2 [ruby-interpreter]  2.2.3-1

ruby-gettext recommends no packages.

ruby-gettext suggests no packages.

-- debconf-show failed

___
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#799050: Help needed with a locale-related issue

2015-09-16 Thread Francesco Poli
On Wed, 16 Sep 2015 11:54:36 +0300 Hleb Valoshka wrote:

[...]
> it seems this particular issue needs additional care, maybe in
> ruby-gettext, because GNU gettext with similar variables returns:
> LANGUAGE='be_BY:be' LC_CTYPE='C' gettext 'celestia' "About Celestia"
> ??? Celestia
> while ruby-gettext:
> [3] pry(main)> str = gettext("About Celestia")
> => "\xD0\x9F\xD1\x80\xD0\xB0 Celestia"
> 
> I have no idea how to fix it so far (just don't do that :) ).

OK, thanks for all the help you're providing. It's really appreciated!
For the record, I filed bug #799194.

Bye.


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpxSPOWL4D55.pgp
Description: PGP signature
___
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#799050: Help needed with a locale-related issue

2015-09-15 Thread Francesco Poli
On Tue, 15 Sep 2015 12:10:52 +0300 Hleb Valoshka wrote:

> On 9/14/15, Francesco Poli <invernom...@paranoici.org> wrote:
> 
> > Hence, it seems to me that the trouble is not caused by the original
> > string, but by those translated strings that include non-ASCII UTF-8
> > characters and are somehow sent as non-UTF-8 non-pure-ASCII strings,
> > whenever LC_CTYPE=C ...
> 
> Yes, 100% correct. And the the package to blame is the ruby-locale,
> I've filed #799050.

Thanks a lot for filing the bug report on the Debian BTS, for
forwarding it upstream and for implementing a patch!

I see that the forwarded report has been closed. I have a doubt,
though: would the patch fix the issue when LANGUAGE='it' LC_CTYPE=C ?

I mean: I also get a crash with

  $ LANGUAGE='it' LC_CTYPE=C locale
  LANG=en_US.UTF-8
  LANGUAGE=it
  LC_CTYPE=C
  LC_NUMERIC="en_US.UTF-8"
  LC_TIME="en_US.UTF-8"
  LC_COLLATE="en_US.UTF-8"
  LC_MONETARY="en_US.UTF-8"
  LC_MESSAGES="en_US.UTF-8"
  LC_PAPER="en_US.UTF-8"
  LC_NAME="en_US.UTF-8"
  LC_ADDRESS="en_US.UTF-8"
  LC_TELEPHONE="en_US.UTF-8"
  LC_MEASUREMENT="en_US.UTF-8"
  LC_IDENTIFICATION="en_US.UTF-8"
  LC_ALL=
  $ LANGUAGE='it' LC_CTYPE=C apt-listbugs -v
  /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:390:in `width': "\xC3" from 
ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
  from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:390:in 
`'
  from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:387:in 
`'
  from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:381:in `'
  from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in 
`require'
  from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in 
`require'
  from /usr/bin/apt-listbugs:349:in `'


But the patch seems to only take LC_ALL, LC_MESSAGES, and LANG into
account...


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpadfd3LlU2z.pgp
Description: PGP signature
___
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

Re: [DRE-maint] Bug#749193: apt-listbugs: Reemergence

2014-06-02 Thread Francesco Poli
Control: reassign -1 ruby-locale 2.1.0-2
Control: affects -1 + apt-listbugs


On Sun, 25 May 2014 20:26:25 +0200 Stefan Skoglund wrote:

 The direct trigger of the crash is a peculiar character in a bug report
 for sound-juicer (bug #717391.)

Yes, I reproduced the issue with the following command:

  $ LC_ALL=sv_SE.UTF-8 apt-listbugs list sound-juicer

I performed a number of tests and it seems to me that the problem lies
in the subject line of bug #717391 which includes non-ASCII UTF-8
quotes “ and ” .

For some reason that I cannot understand, Ruby at some point seems to
consider this string as ASCII-8BIT and cannot concatenate it with a
UTF-8 string. Hence, when using a localization where the translation of
Fixed includes non-ASCII UTF-8 characters (one such localization is
the Swedish Tillrättade), an Encoding::CompatibilityError is
generated...

As I said, I cannot understand why Ruby is convinced that the subject
line of bug #717391 is encoded in ASCII-8BIT.
By using the -d option of apt-listbugs, I took a look at the SOAP wire
dump and it seems to me that the Debian BTS SOAP interface sends this
subject line as

subject 
xsi:type=xsd:base64Binaryc291bmQtanVpY2VyOiBSZWZ1c2VzIHRvIHN0YXJ0OiDigJxUaGUgcGx1Z2luIG5lY2Vzc2FyeSBmb3IgZmlsZSBhY2Nlc3Mgd2FzIG5vdCBmb3VuZOKAnQ==/subject

but:

  $ echo 
c291bmQtanVpY2VyOiBSZWZ1c2VzIHRvIHN0YXJ0OiDigJxUaGUgcGx1Z2luIG5lY2Vzc2FyeSBmb3IgZmlsZSBhY2Nlc3Mgd2FzIG5vdCBmb3VuZOKAnQ==
 | base64 -d
  sound-juicer: Refuses to start: “The plugin necessary for file access was not 
found”

and:

  $ echo 
c291bmQtanVpY2VyOiBSZWZ1c2VzIHRvIHN0YXJ0OiDigJxUaGUgcGx1Z2luIG5lY2Vzc2FyeSBmb3IgZmlsZSBhY2Nlc3Mgd2FzIG5vdCBmb3VuZOKAnQ==
 | base64 -d | file -
  /dev/stdin: UTF-8 Unicode text, with no line terminators

Hence, I seem to understand that this subject line is sent as a
base64-encoded UTF-8 string. I failed to figure out where Ruby begins
to consider it as ASCII-8BIT.

 
 Take a look in the report from Ben Finney (message 1.)
 
 It could be a lack of input sanitizing in bugs.debian.org ?
 
 Still, this together with localization shouldn't cause a crash in
 ruby's localization module (if the weakness is there.)

I am reassigning your bug report to package ruby-locale, since I am
more and more convinced that the problem lies in how Ruby handles
string encodings.
I hope the maintainers of ruby-locale may investigate and fix
the issue.

 
 The older report (725496) regarding this had another trigger:
[...]
 Ruby isn't sensitive to 'utf-8' or 'UTF-8' but 'utf8' or 'UTF8' was once
 sensitive.

Definitely, lowercase utf or uppercase UTF does not seem to make
any difference for the issue you are experiencing.

Thanks for taking the time to check this as well!


Now let's hope that the issue may be fixed soon.
Bye.


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpJENMhIZ8iz.pgp
Description: PGP signature
___
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] Reassigning bug #749193

2014-06-02 Thread Francesco Poli
Hello,
please note that I reassigned bug #749193 from package ruby-locale to
package ruby-soap4r with message #33 [1].

[1] https://bugs.debian.org/749193#33

I put both @packages.debian.org addresses in Cc, but, for reasons
unknown, they seem to have bounced with an error like:

  pipe to | /home/pts/pts/manage.py pts_dispatch
generated by ruby-soap4r_cont...@pts.debian.net
local delivery failed

The following text was generated during the delivery attempt:

-- pipe to | /home/pts/pts/manage.py pts_dispatch
   generated by ruby-soap4r_cont...@pts.debian.net --

INFO Processing a received package message
UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid 
start byte


I hope this message reaches you...

-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpqWJXchHFrV.pgp
Description: PGP signature
___
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#749193: apt-listbugs: Reemergence

2014-06-01 Thread Francesco Poli
Control: reassign -1 ruby-soap4r 2.0.5-3


On Mon, 26 May 2014 00:07:40 +0200 Francesco Poli wrote:

[...]
 For some reason that I cannot understand, Ruby at some point seems to
 consider this string as ASCII-8BIT and cannot concatenate it with a
 UTF-8 string. Hence, when using a localization where the translation of
 Fixed includes non-ASCII UTF-8 characters (one such localization is
 the Swedish Tillrättade), an Encoding::CompatibilityError is
 generated...
 
 As I said, I cannot understand why Ruby is convinced that the subject
 line of bug #717391 is encoded in ASCII-8BIT.
[...]
 Hence, I seem to understand that this subject line is sent as a
 base64-encoded UTF-8 string. I failed to figure out where Ruby begins
 to consider it as ASCII-8BIT.

On a second thought, I am under the impression that it should be the
responsibility of the SOAP library to return UTF-8 strings with the
encoding correctly set, so that Ruby knows how to handle them.

I am reassigning the bug report to package ruby-soap4r, in the hope
that the actual issue may be fixed there.


Please note that, if I force apt-listbugs to interpret the subject line
of bugs as UTF-8 encoded strings (by modifying a single line of code
in  /usr/share/apt-listbugs/debian/bug.rb , see the attached diff),
the issue with
  $ LC_ALL=sv_SE.UTF-8 apt-listbugs list sound-juicer
seems to vanish.
However, I am afraid that this would *not* be a general solution: what
if, for some other bug subject line, the BTS SOAP interface returns a
string which is not UTF-8 encoded? I think that funny characters would
be displayed by apt-listbugs, if it took every subject line as always
encoded in UTF-8... Or am I wrong?
This is the reasoning that made me think the issue is actually in
ruby-soap4r. I hope it may be fixed there in a proper way.


Bye.

-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


workaround_749193.diff.gz
Description: application/gzip


pgpKfWGhF72nM.pgp
Description: PGP signature
___
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#737782: ruby-switch: fails to work with ruby/1:1.9.3.1

2014-02-07 Thread Francesco Poli
On Thu, 6 Feb 2014 16:20:20 +0100 Christian Hofstaedtler wrote:

[...]
 Francesco Poli wrote:
  Is there a working strategy for setting the default system-wide Ruby
  interpreter in a clean and practical way?
 
 No, this is no longer a supported scenario.

Ah, thanks for the clarification.

 
  Should ruby-switch be adapted to the new strategy or should it be
  removed from Debian sid?
 
 Indeed, ruby-switch in it's current form does not work; I'm not sure
 if there were plans for a user-wide switching strategy in
 ruby-switch, or if the recommendation will be rbenv.

The current ruby-switch description recommends rbenv for per-user
configuration...

 
 In any case, ruby-defaults should have had a Conflicts: ruby-switch
 ( 0.1.0).

Then maybe this bug report should be cloned and reassigned to
ruby-defaults...

Bye, and thanks for your prompt reply!



-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpTJXzLmBo31.pgp
Description: PGP signature
___
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#737782: ruby-switch: fails to work with ruby/1:1.9.3.1

2014-02-05 Thread Francesco Poli (wintermute)
Package: ruby-switch
Version: 0.1.0
Severity: grave
Justification: renders package unusable

Hello,
after installing ruby/1:1.9.3.1, the alternatives for /usr/bin/ruby and
similar links seem to have been replaced by direct links.

  $ ls -altrF /usr/bin/ruby
  lrwxrwxrwx 1 root root 9 Feb  3 01:08 /usr/bin/ruby - ruby1.9.1*

As a consequence, ruby-switch stopped working:

  # ruby-switch --list
  update-alternatives: error: no alternatives for ruby

Is there a working strategy for setting the default system-wide Ruby
interpreter in a clean and practical way?
Should ruby-switch be adapted to the new strategy or should it be
removed from Debian sid?

Please let me know.
Thanks for your time!


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ruby-switch depends on:
ii  ruby  1:1.9.3.1
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.484-2
ii  ruby2.0 [ruby-interpreter]2.0.0.484-1

ruby-switch recommends no packages.

ruby-switch 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


[DRE-maint] Bug#730912: ruby-soap4r: FTBFS: Tests failures

2013-12-27 Thread Francesco Poli
On Sat, 30 Nov 2013 17:54:07 +0100 David Suárez wrote:

 Source: ruby-soap4r
 Version: 2.0.5-2
 Severity: serious
[...]
 Justification: FTBFS on amd64
[...]

Hello,
is there any progress on this bug?

Please let me know, thanks for your time!

-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpMJakb9ZTeu.pgp
Description: PGP signature
___
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

Re: [DRE-maint] Bug#733197: apt-listbugs: Ruby error, no package can be installed/removed

2013-12-27 Thread Francesco Poli
Control: reassign -1 ruby-locale 2.1.0-1
Control: forcemerge 733150 -1


On Fri, 27 Dec 2013 00:08:59 +0100 Sebastien Helleu wrote:

[...]
 When upgrading or removing any package, apt-listbugs ends with a ruby error:
[...]
 It is not possible to upgrade or remove any package from the system.

Hello Sebastien,
thanks for your bug report.

However, you seem to experience the same exact issue that has already
been reported twice yesterday:
http://bugs.debian.org/733140
http://bugs.debian.org/733149

Those two bug reports were reassigned to ruby-locale and merged with
http://bugs.debian.org/733150
which was later closed.

I am reassigning and merging this bug report too.
As a consequence, this report will be closed.

 
 The only workaround I found is to disable apt-listbugs (file
 /etc/apt/apt.conf.d/10apt-listbugs), because apt-listbugs itself can not be
 removed from system.

You should be able to re-enable apt-listbugs, after upgrading
ruby-gettext to version 3.0.3-1

Bye.


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgp_Zd0Ckxi_D.pgp
Description: PGP signature
___
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

Re: [DRE-maint] Bug#733140: apt-listbugs: incompatible with ruby-locale 2.1.0-1

2013-12-26 Thread Francesco Poli
Control: reassign -1 ruby-locale 2.1.0-1
Control: forcemerge 733150 -1
Control: affects -1 + apt-listbugs


On Thu, 26 Dec 2013 10:50:33 +0100 intrig...@debian.org wrote:

[...]
 Hi,

Hello intrigeri,
thanks for reporting this bug.

 
 after my last APT upgrade (that upgraded ruby-locale from 2.0.9-1 to
 2.1.0-1), any `apt-get install' operation dies:
 
 Do you want to continue? [Y/n] 
 /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load 
 such file -- locale/util/memoizable (LoadError)
   from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
   from /usr/lib/ruby/vendor_ruby/gettext/class_info.rb:3:in `top 
 (required)'
   from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
   from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
   from /usr/lib/ruby/vendor_ruby/gettext/text_domain_manager.rb:13:in 
 `top (required)'
   from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
   from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
   from /usr/lib/ruby/vendor_ruby/gettext.rb:19:in `top (required)'
   from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
   from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
   from /usr/sbin/apt-listbugs:294:in `main'
 E: Sub-process /usr/sbin/apt-listbugs apt returned an error code (1)
 E: Failure running script /usr/sbin/apt-listbugs apt
 
 Downgrading ruby-locale to 2.0.9-1 fixes this problem for me.

Well, ruby-locale is not a direct dependency of apt-listbugs.
Package apt-listbugs depends on ruby-gettext, which, in its turn,
depends on ruby-locale.

The problem seems to be that ruby-locale/2.1.0-1 breaks ruby-gettext,
causing apt-listbugs to exit with errors.

Indeed, this same issue has been reported against ruby-locale in the
meanwhile:
http://bugs.debian.org/733150
Having an RC bug filed against ruby-locale (with proper version
tracking) will prevent its migration into testing and should let
apt-listbugs users know about the issue and give them an opportunity to
pin ruby-locale before upgrading (that's what apt-listbugs is for, as
you know!).

I am reassigning this bug report and merging it with #733150.

I hope the issue may be fixed soon.
Bye.


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpta2JY6632L.pgp
Description: PGP signature
___
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

Re: [DRE-maint] Bug#733149: apt-listbugs: breaks after ruby-locale 2.0.9-1 - 2.1.0-1 upgrade

2013-12-26 Thread Francesco Poli
Control: reassign -1 ruby-locale 2.1.0-1
Control: forcemerge 733150 -1


On Thu, 26 Dec 2013 12:57:38 +0100 (CET) Cristian Ionescu-Idbohrn wrote:

[...]
 And this is what it reports:
[...]
 
 Reverting to ruby-locale 2.0.9-1 makes it work again.

Hello Cristian,
thanks for your bug report.

However, it seems to me that the issue you are experiencing is
identical to the already reported #733140, which I have just reassigned
to ruby-locale:
http://bugs.debian.org/733140

 ruby-locale
 could, arguably, be blamed for breaking other packages.

Indeed.
That's why I reassigned the other (identical) bug report to package
ruby-locale.

I am reassigning and merging this bug report too.

[...]
 There are a few more bugs (which render the package unusable, for me)
 listed on the http://bugs.debian.org/apt-listbugs.  Notable: 730822,

Bug #730822 is tagged as pending: it will be fixed in the next upload
(which will happen as soon as I find a little time to finalize
apt-listbugs version 0.1.12).
In the meanwhile you may manually fix the issue as explained in
http://bugs.debian.org/730822#17

 725672.  Another ruby package, ruby-soap4r, is blamed for the 725672
 trouble.

Bug #725672 is a ruby-soap4r issue, as you correctly noticed.
Unfortunately, I don't have the time to study ruby-soap4r internals and
investigate the issue in the hope to devise a fix.
Please cooperate with ruby-soap4r maintainers to find a solution, if
you are able to help.

 
 It's a bit messy situation right now.  Any chance of sorting this out
 soon?  apt-listbugs is quite useful to me.  I'd hate to loose it.

I can understand, but you should be able to use apt-listbugs itself to
work around the issues: after downgrading ruby-locale to version
2.0.9-1, you may use apt-listbugs to pin it to that version until this
bug is fixed.
For the two other bugs, please see the above described suggestions.

Bye. 


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpenFMdxRhio.pgp
Description: PGP signature
___
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#726797: closed by Jérémy Bobbio lu...@debian.org (Bug#726797: fixed in ruby-gettext 3.0.2-2)

2013-10-20 Thread Francesco Poli
On Sat, 19 Oct 2013 18:17:15 +0200 Francesco Poli wrote:

[...]
 Thanks a lot for fixing things up.
 I will soon test ruby-gettext/3.0.2-2 and let you know.

I've just installed ruby-gettext/3.0.2-2 from unstable and I confirm
that rxgettext works again.

Thanks a lot!


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpmW_4S6jpST.pgp
Description: PGP signature
___
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#726941: rxgettext: please implement a command-line option to set the copyright YEAR

2013-10-20 Thread Francesco Poli (wintermute)
Package: ruby-gettext
Version: 3.0.2-2
Severity: wishlist

Hello again,
it would be great if rxgettext had a command-line option to specify
what should be put in the output .pot file in stead of the YEAR
in the copyright notice.

In other words, let's consider (again) the test case described in bug
#684182 [1].

[1] http://bugs.debian.org/684182

If I create the .pot with rxgettext:

  $ rxgettext --add-comments=TRANSLATORS --no-wrap \
  --copyright-holder=Francesco Poli \
  --package-name=myapplication --package-version=0.1 \
  --msgid-bugs-address=addr...@example.com \
  myapplication.rb -o myapplication_RXGETTEXT.pot

the copyright notice in the output .pot is:

  $ grep Copyright myapplication_RXGETTEXT.pot 
  # Copyright (C) YEAR Francesco Poli

As far as I know, there's no way to tell rxgettext to replace that
YEAR with, say, 2012, 1999-2013, or 1998, 2005-2007, 2012.

I think it would be useful to have some command-line option to do
that. Something like

  $ rxgettext ... --copyright-year=1999-2013 ...

Please implement this additional feature and/or forward this bug
report upstream.
Thanks for your time!


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ruby-gettext depends on:
ii  ruby  1:1.9.3
ii  ruby-locale   2.0.8-1
ii  ruby-text 1.2.1-1
ii  ruby1.8 [ruby-interpreter]1.8.7.358-8
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.448-1

ruby-gettext recommends no packages.

ruby-gettext 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


[DRE-maint] Bug#726946: ruby-gettext: rxgettext writes location paths relative to output file directory

2013-10-20 Thread Francesco Poli (wintermute)
Package: ruby-gettext
Version: 3.0.2-2
Severity: normal

Hi again!

I noticed something really weird in rxgettext.
It seems that its output .pot file includes location paths relative to
the destination directory, rather than to the current working directory!

I am not sure this causes problems with ruby-gettext library, but it
sure looks unusual and awkward.

I'll show the issue with my usual test case, described in
bug #684182 [1].

[1] http://bugs.debian.org/684182

Let's start with the example application in a directory:

  $ tree
  .
  └── myapplication.rb

  0 directories, 1 file

Then, let's create a subdirectory:

  $ mkdir po

and create the .pot file with xgettext:

  $ xgettext --add-comments=TRANSLATORS --no-wrap \
 --copyright-holder=Francesco Poli \
 --package-name=myapplication --package-version=0.1 \
 --msgid-bugs-address=addr...@example.com \
 --language=python \
 myapplication.rb -o po/myapplication_XGETTEXT.pot
  $ cat po/myapplication_XGETTEXT.pot
  # SOME DESCRIPTIVE TITLE.
  # Copyright (C) YEAR Francesco Poli
  # This file is distributed under the same license as the PACKAGE package.
  # FIRST AUTHOR EMAIL@ADDRESS, YEAR.
  #
  #, fuzzy
  msgid 
  msgstr 
  Project-Id-Version: myapplication 0.1\n
  Report-Msgid-Bugs-To: addr...@example.com\n
  POT-Creation-Date: 2013-10-20 22:35+0200\n
  PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n
  Last-Translator: FULL NAME EMAIL@ADDRESS\n
  Language-Team: LANGUAGE l...@li.org\n
  Language: \n
  MIME-Version: 1.0\n
  Content-Type: text/plain; charset=CHARSET\n
  Content-Transfer-Encoding: 8bit\n
  
  #: myapplication.rb:24
  msgid Hello everybody!\n
  msgstr 
  
  #: myapplication.rb:27
  msgid You are running an internationalized Ruby program.\n
  msgstr 
  
  #. TRANSLATORS: %d is the number of already printed messages
  #: myapplication.rb:31
  #, python-format
  msgid You have already seen %d translatable messages.\n
  msgstr 
  
  #: myapplication.rb:33
  msgid Is this message # 3 or # 4 ?\n
  msgstr 
  
  #: myapplication.rb:35
  msgid OK, I am tired...\n
  msgstr 
  
  #: myapplication.rb:37
  msgid Goodbye!\n
  msgstr 

This is OK.
Let's try with rxgettext:

  $ rxgettext --add-comments=TRANSLATORS --no-wrap \
  --copyright-holder=Francesco Poli \
  --package-name=myapplication --package-version=0.1 \
  --msgid-bugs-address=addr...@example.com \
  myapplication.rb -o po/myapplication_RXGETTEXT.pot
  $ cat po/myapplication_RXGETTEXT.pot
  # SOME DESCRIPTIVE TITLE.
  # Copyright (C) YEAR Francesco Poli
  # This file is distributed under the same license as the myapplication 
package.
  # FIRST AUTHOR EMAIL@ADDRESS, YEAR.
  #
  #, fuzzy
  msgid 
  msgstr 
  Project-Id-Version: myapplication 0.1\n
  Report-Msgid-Bugs-To: addr...@example.com\n
  POT-Creation-Date: 2013-10-20 22:39+0200\n
  PO-Revision-Date: 2013-10-20 22:39+0200\n
  Last-Translator: FULL NAME EMAIL@ADDRESS\n
  Language-Team: LANGUAGE l...@li.org\n
  Language: \n
  MIME-Version: 1.0\n
  Content-Type: text/plain; charset=UTF-8\n
  Content-Transfer-Encoding: 8bit\n
  Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n
  
  #: ../myapplication.rb:24
  msgid Hello everybody!\n
  msgstr 
  
  #: ../myapplication.rb:27
  msgid You are running an internationalized Ruby program.\n
  msgstr 
  
  #. TRANSLATORS: %d is the number of already printed messages
  #: ../myapplication.rb:31
  msgid You have already seen %d translatable messages.\n
  msgstr 
  
  #: ../myapplication.rb:33
  msgid Is this message # 3 or # 4 ?\n
  msgstr 
  
  #: ../myapplication.rb:35
  msgid OK, I am tired...\n
  msgstr 
  
  #: ../myapplication.rb:37
  msgid Goodbye!\n
  msgstr 


Please note that the location paths are ../myapplication.rb, rather
than myapplication.rb.
I think that rxgettext should behave like xgettext in this respect.

Please fix this bug and/or forward this bug report upstream.
Thanks for your time!


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ruby-gettext depends on:
ii  ruby  1:1.9.3
ii  ruby-locale   2.0.8-1
ii  ruby-text 1.2.1-1
ii  ruby1.8 [ruby-interpreter]1.8.7.358-8
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.448-1

ruby-gettext recommends no packages.

ruby-gettext 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

[DRE-maint] Bug#726949: ruby-gettext: rxgettext should split messages at newline characters

2013-10-20 Thread Francesco Poli (wintermute)
Package: ruby-gettext
Version: 3.0.2-2
Severity: wishlist

Hello once again!   ;-)

I prepared a small revision of my test case, in order to show another
thing that I noticed about rxgettext:

  $ cat myapplication.rb
  #!/usr/bin/ruby
  # Copyright (C) 2012-2013 Francesco Poli
  #
  #  This program is free software; you can redistribute it and/or modify
  #  it under the terms of the GNU General Public License as published by
  #  the Free Software Foundation; either version 2 of the License, or
  #  (at your option) any later version.
  #
  #  This program is distributed in the hope that it will be useful,
  #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #  GNU General Public License for more details.
  #
  #  You should have received a copy of the GNU General Public License with
  #  the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
  #  if not, write to the Free Software Foundation, Inc., 59 Temple Place,
  #  Suite 330, Boston, MA  02111-1307  USA
  
  require 'gettext'
  include GetText
  GetText::bindtextdomain(myapplication)
  
  count = 0
  print _(Hello everybody!\n)
  count += 1
  
  print _(You are running an internationalized Ruby program.\n)
  count += 1
  
  # TRANSLATORS: %d is the number of already printed messages
  print _(You have already seen %d translatable messages.\n) % count
  
  print _(Is this message # 3 or # 4 ?\nDoes it matter?\n)
  
  print _(OK, I am tired...\n)
  
  print _(Goodbye!\n)

Let's use xgettext in order to generate the corresponding .pot file:

  $ xgettext --add-comments=TRANSLATORS --no-wrap \
 --copyright-holder=Francesco Poli \
 --package-name=myapplication --package-version=0.2 \
 --msgid-bugs-address=addr...@example.com \
 --language=python \
 myapplication.rb -o myapplication_XGETTEXT.pot
  $ cat myapplication_XGETTEXT.pot
  # SOME DESCRIPTIVE TITLE.
  # Copyright (C) YEAR Francesco Poli
  # This file is distributed under the same license as the PACKAGE package.
  # FIRST AUTHOR EMAIL@ADDRESS, YEAR.
  #
  #, fuzzy
  msgid 
  msgstr 
  Project-Id-Version: myapplication 0.2\n
  Report-Msgid-Bugs-To: addr...@example.com\n
  POT-Creation-Date: 2013-10-20 22:49+0200\n
  PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n
  Last-Translator: FULL NAME EMAIL@ADDRESS\n
  Language-Team: LANGUAGE l...@li.org\n
  Language: \n
  MIME-Version: 1.0\n
  Content-Type: text/plain; charset=CHARSET\n
  Content-Transfer-Encoding: 8bit\n
  
  #: myapplication.rb:24
  msgid Hello everybody!\n
  msgstr 
  
  #: myapplication.rb:27
  msgid You are running an internationalized Ruby program.\n
  msgstr 
  
  #. TRANSLATORS: %d is the number of already printed messages
  #: myapplication.rb:31
  #, python-format
  msgid You have already seen %d translatable messages.\n
  msgstr 
  
  #: myapplication.rb:33
  msgid 
  Is this message # 3 or # 4 ?\n
  Does it matter?\n
  msgstr 
  
  #: myapplication.rb:35
  msgid OK, I am tired...\n
  msgstr 
  
  #: myapplication.rb:37
  msgid Goodbye!\n
  msgstr 

As you can see the message at line 33 is split up into two strings
for easier reading by translators. This is done since the message
is actually intended to be printed onto two separate lines; so it makes
sense that the translator has the opportunity to see it formatted in
a way closer to how the program user will see it.

Unfortunately, rxgettext does not do the same:

  $ rxgettext --add-comments=TRANSLATORS --no-wrap \
  --copyright-holder=Francesco Poli \
  --package-name=myapplication --package-version=0.2 \
  --msgid-bugs-address=addr...@example.com \
  myapplication.rb -o myapplication_RXGETTEXT.pot
  $ cat myapplication_RXGETTEXT.pot
  # SOME DESCRIPTIVE TITLE.
  # Copyright (C) YEAR Francesco Poli
  # This file is distributed under the same license as the myapplication 
package.
  # FIRST AUTHOR EMAIL@ADDRESS, YEAR.
  #
  #, fuzzy
  msgid 
  msgstr 
  Project-Id-Version: myapplication 0.2\n
  Report-Msgid-Bugs-To: addr...@example.com\n
  POT-Creation-Date: 2013-10-20 23:01+0200\n
  PO-Revision-Date: 2013-10-20 23:01+0200\n
  Last-Translator: FULL NAME EMAIL@ADDRESS\n
  Language-Team: LANGUAGE l...@li.org\n
  Language: \n
  MIME-Version: 1.0\n
  Content-Type: text/plain; charset=UTF-8\n
  Content-Transfer-Encoding: 8bit\n
  Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n
  
  #: myapplication.rb:24
  msgid Hello everybody!\n
  msgstr 
  
  #: myapplication.rb:27
  msgid You are running an internationalized Ruby program.\n
  msgstr 
  
  #. TRANSLATORS: %d is the number of already printed messages
  #: myapplication.rb:31
  msgid You have already seen %d translatable messages.\n
  msgstr 
  
  #: myapplication.rb:33
  msgid Is this message # 3 or # 4 ?\nDoes it matter?\n
  msgstr 
  
  #: myapplication.rb:35
  msgid OK, I am tired...\n
  msgstr 
  
  #: myapplication.rb

[DRE-maint] Bug#726797: ruby-gettext: rxgettext fails with uninitialized constant GetText::Tools::XGetText::PO (NameError)

2013-10-19 Thread Francesco Poli (wintermute)
Package: ruby-gettext
Version: 3.0.2-1
Severity: normal

Hello,
since bug #716916 [1] was fixed a while ago, I thought I could test
rxgettext again.
I took the test case described in bug #684182 [2].

Mh, there seems to be something wrong!

  $ rxgettext --copyright-holder=Francesco Poli \
--package-name=myapplication --package-version=0.1 \
--msgid-bugs-address=addr...@example.com \
myapplication.rb -o myapplication_RXGETTEXT.pot
  /usr/lib/ruby/vendor_ruby/gettext/tools/xgettext.rb:163:in `parse': 
uninitialized constant GetText::Tools::XGetText::PO (NameError)
  from /usr/lib/ruby/vendor_ruby/gettext/tools/xgettext.rb:216:in 
`generate_pot'
  from /usr/lib/ruby/vendor_ruby/gettext/tools/xgettext.rb:150:in `run'
  from /usr/lib/ruby/vendor_ruby/gettext/tools/xgettext.rb:33:in `run'
  from /usr/bin/rxgettext:24:in `main'

I get the same exact error even with the simple:

  $ rxgettext myapplication.rb -o myapplication_RXGETTEXT.pot


Am I using the tool in a wrong way?

Please clarify and/or fix the issue and/or forward my report upstream!
Thanks for your time.


[1] http://bugs.debian.org/716916
[2] http://bugs.debian.org/684182


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ruby-gettext depends on:
ii  ruby  1:1.9.3
ii  ruby-locale   2.0.8-1
ii  ruby-text 1.2.1-1
ii  ruby1.8 [ruby-interpreter]1.8.7.358-8
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.448-1

ruby-gettext recommends no packages.

ruby-gettext 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


[DRE-maint] Bug#726797: closed by Jérémy Bobbio lu...@debian.org (Bug#726797: fixed in ruby-gettext 3.0.2-2)

2013-10-19 Thread Francesco Poli
On Sat, 19 Oct 2013 13:03:25 +0200 Francesco Poli (wintermute) wrote:

 Package: ruby-gettext
 Version: 3.0.2-1
 Severity: normal
[...]
 Mh, there seems to be something wrong!
[...]


On Sat, 19 Oct 2013 14:42:27 + Debian Bug Tracking System wrote:

 Date: Sat, 19 Oct 2013 14:58:05 +0200
[...]
[ Jérémy Bobbio ]
* Team upload.
* Add a patch to fix rxgettext. (Closes: #726797)
[...]


[Please note the timestamps]

Wow! This probably wins the Quickest Package Maintainer Reaction Of All
Times Award™!   ;-)

Thanks a lot for fixing things up.
I will soon test ruby-gettext/3.0.2-2 and let you know.

Thanks again!


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpvYylFhMdUl.pgp
Description: PGP signature
___
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

Re: [DRE-maint] Bug#725496: de/LC_MESSAGES/apt-listbugs.mo: unknown encoding name - utf8 (ArgumentError)

2013-10-07 Thread Francesco Poli
Control: reassign -1 ruby-locale 2.0.8-1


On Sun, 06 Oct 2013 17:17:28 +0200 Sven Hartge wrote:

 Package: apt-listbugs
 Version: 0.1.10
 Severity: normal
 
 Hi!

Hi Sven,
thanks for your bug report!

 
 The subject already says it all:
 
 [...]
 After this operation, 63,5 kB of additional disk space will be used.
 Do you want to continue? [Y/n] 
 File: /usr/share/locale/de/LC_MESSAGES/apt-listbugs.mo: unknown encoding name 
 - utf8 (ArgumentError)
 E: Sub-process /usr/sbin/apt-listbugs apt returned an error code (1)
 E: Failure running script /usr/sbin/apt-listbugs apt
 
 I have to remove the mentioned file to be able to use apt-listbugs
 without errors again.

That's awkward, I tested localization several times during the
development cycle of apt-listbugs/0.1.10 and I have never found any
issues (even with German localization).

Anyway, the localization is handled by ruby-gettext and ruby-locale:
apt-listbugs itself does not directly manage the locale environment
variables or the encoding names.
I am hence reassigning your bug report to ruby-locale, as I think the
error is generated by that library (or maybe by ruby-gettext?).


[...]
 Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
[...]

I see that you set some locale environment variables to de_DE.utf8.
Shouldn't it be de_DE.UTF-8?

I've just checked with

  # LC_ALL=de_DE.UTF-8 aptitude install some_package

and both aptitude and apt-listbugs ran correctly with output in German.
Please try and set your locale to de_DE.UTF-8: it should make
apt-listbugs work correctly.

I also tested

  # LC_ALL=de_DE.utf8 aptitude install some_package

The awkward result is that aptitude seems to run correctly with output
in German, while apt-listbugs fails with the error you experienced!
Maybe there's some Ruby-specific peculiarity (or bug!) in the locale
handling that prevents de_DE.utf8 from being accepted as a valid
setting (apt-listbugs is written in Ruby, while aptitude is not!).

I hope the maintainers of ruby-locale / ruby-gettext will soon figure
out what's wrong...

Bye.


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpsna99rZhBE.pgp
Description: PGP signature
___
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#725496: Processed: severity of 725496 is grave

2013-10-06 Thread Francesco Poli
On Sun, 06 Oct 2013 23:08:13 +0200 Michael Biebl wrote:

[...]
 Am 06.10.2013 22:36, schrieb Francesco Poli:
  severity 725496 normal
  thanks
  
  
  On Sun, 06 Oct 2013 18:57:10 + Debian Bug Tracking System wrote:
  
  Processing commands for cont...@bugs.debian.org:
 
  severity 725496 grave
  Bug #725496 [apt-listbugs] de/LC_MESSAGES/apt-listbugs.mo: unknown 
  encoding name - utf8 (ArgumentError)
  Severity set to 'grave' from 'normal'
  
  Hello Michael,
  I think you somewhat over-inflated the severity of this bug.
 
 I don't think so.
 
  I don't see how this issue could make the package in question unusable
  or mostly so or cause data loss or introduce a security hole
  allowing access to the accounts of users who use the package.
 
 The package is currently completely unusable when being used under any
 desktop environment which uses gdm as login manager and gdm is our
 default login manager.

Wait, are you saying that gdm3 sets the locale variables to *.utf8 ?!?
If this is the case, why hasn't anybody noticed that ruby-locale /
ruby-gettext seem to have issues with that?!?
Please take into account that I don't use gdm3 (or other display
managers) myself.

 If you take popcon numbers into account, almost
 every second user is potentially affected.
 I don't think this version should migrate to testing in that state.
 
 But your call, I won't bother if you think it's a good idea to ignore that.

I don't want to ignore that!
I was under the impression that the issue only affected a few users
with an unusual (and manually set) configuration (*.utf8) that could
be easily changed to an equivalent working one (*.UTF-8).

If the *.utf8 locale variables are set by gdm3, we seem to have a big
problem!

I've just performed some further testing and it seems that the issue is
triggered by the switch from Ruby 1.8 to Ruby 1.9:

# apt-listbugs -v
0.1.10
# LC_ALL=de_DE.utf8 ruby1.8 /usr/sbin/apt-listbugs -h
Aufruf: apt-listbugs [Optionen] Befehl [Argumente]
Optionen:
[...]
# LC_ALL=de_DE.utf8 ruby1.9.1 /usr/sbin/apt-listbugs -h
File: /usr/share/locale/de/LC_MESSAGES/apt-listbugs.mo: unknown
encoding name - utf8 (ArgumentError)


If this is all confirmed, please feel free to raise the severity of
this bug report again and to file a new bug report against
apt-listbugs/0.1.10.
This new bug report could be titled something like should not migrate
into testing until the .utf8 issue is solved, and should be of RC
severity and be blocked by 725496.

I apologize, if I gave the impression that I wanted to neglect severe
issues!

BTW, do you have any idea of how the issue could be fixed?


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgp8dBQbAcxla.pgp
Description: PGP signature
___
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#725496: de/LC_MESSAGES/apt-listbugs.mo: unknown encoding name - utf8 (ArgumentError)

2013-10-06 Thread Francesco Poli
On Sun, 06 Oct 2013 23:53:16 +0200 Sven Hartge wrote:

[...]
 On 06.10.2013 22:28, Francesco Poli wrote:
 
  [...]
  Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
  [...]
  
  I see that you set some locale environment variables to
  de_DE.utf8. Shouldn't it be de_DE.UTF-8?
 
 locale -a says otherwise:
 
 oweh@ds9:~$ locale -a | grep de_DE
 de_DE
 de_DE@euro
 de_DE.utf8
 
 And I've had this locale setting for at least 3 years, never had any
 problems, until now. I don't remember, where I got this setting from,
 I guess from the locale -a output.

Please take a look at the other messages in the bug log [1] (sorry for
not Cc-ing you): this seems to be set by gdm3... You seem to be in good
company with possibly many other users with similar *.utf8 settings.

[1] http://bugs.debian.org/725496


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpMfTjo5zYH9.pgp
Description: PGP signature
___
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#725496: Bug#725496: Processed: severity of 725496 is grave

2013-10-06 Thread Francesco Poli
On Sun, 6 Oct 2013 19:49:48 -0300 Antonio Terceiro wrote:

[...]
 On Mon, Oct 07, 2013 at 12:11:46AM +0200, Francesco Poli wrote:
  I don't want to ignore that!
[...]
  If this is all confirmed, please feel free to raise the severity of
  this bug report again and to file a new bug report against
  apt-listbugs/0.1.10.
  This new bug report could be titled something like should not migrate
  into testing until the .utf8 issue is solved, and should be of RC
  severity and be blocked by 725496.

I've just filed this new bug report against apt-listbugs in order to
block its migration into testing.

  
  I apologize, if I gave the impression that I wanted to neglect severe
  issues!
 
 The other day I was debugging this, I even asked on #debian-gnome about
 it. I thought it was a local problem with my system, didn't imagine it
 was a general problem.

Hello Antonio, thanks a lot for stepping in!

 
 So the issue is: for some reason, gdm3 will set $LANG set to xx_YY.utf8
 to old user accounts, what triggers this bug, while new users will have
 $LANG set to xx_YY.UTF-8 which is handled correctly by ruby-gettext.

Awkward...

 
 The underlying problem is how ruby-gettext maps the current locale into
 a valid Ruby encoding name (UTF-8 and 'utf-8' are valid Ruby encoding
 names, 'utf8' without the dash is not).

This clarifies things a bit, thanks.

 
 You can workaround this by clearing the Language= setting in
 /var/lib/AccountsService/users/$USER - in the next login, you will get
 LANG=xx_YY.UTF-8 in your environment (even though `locale -a` will still
 list it as xx_YY.utf8). I did this on my system, but telling every user
 out there to do this is not reallistic.

In the meanwhile we can tell the original bug report submitter about
this! I re-added him to the Cc list.

 
 Anyway, I reported this issue a couple of weeks ago and upstream fixed
 it quickly after that:
 https://github.com/ruby-gettext/gettext/pull/20
 
  BTW, do you have any idea of how the issue could be fixed?
 
 A new upstream release of ruby-gettext should fix this. I'm on it.

This is really great news, thank you very much!
I am looking forward to seeing this new version of ruby-gettext
uploaded to Debian sid.

Thanks for your helpfulness, Antonio!


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgp_htLMtf_05.pgp
Description: PGP signature
___
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#716916: Bug#716916: ruby-gettext: rxgettext doubles the backslashes in newline '\n' characters

2013-08-27 Thread Francesco Poli
On Tue, 27 Aug 2013 10:24:49 +0200 Jérémy Bobbio wrote:

[...]
 Hi Francesco,

Hi Jérémy, thanks for your kind followup.

 
 Francesco Poli (wintermute):
[...]
  I noticed something new in rxgettext, and it looks like a newly
  introduced bug.
  […]
  Why all the newline '\n' characters are produced with doubled
  backslashes (as \\n)?
  I do not see this behavior, if I use xgettext (from the gettext
  package).
 
 After some bisection, it has been introduced in upstream commit
 ef467007b, first appeared in version 2.3.0. This looks intentional.

Intentional? Doesn't this break compatibility with msgmerge ?

 I will ask upstream.

Thank you very much: it's really appreciated.
Bye.


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpqDze1FSNij.pgp
Description: PGP signature
___
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#716916: Bug#716916: ruby-gettext: rxgettext doubles the backslashes in newline '\n' characters

2013-08-27 Thread Francesco Poli
On Tue, 27 Aug 2013 23:12:40 +0300 Hleb Valoshka wrote:

 On 8/27/13, Francesco Poli invernom...@paranoici.org wrote:
  After some bisection, it has been introduced in upstream commit
  ef467007b, first appeared in version 2.3.0. This looks intentional.
  Intentional? Doesn't this break compatibility with msgmerge ?
 
 May be we can use patch based on
 https://github.com/ruby-gettext/gettext/pull/18?

Hi Hleb, thanks for following up.

It's definitely possible that I am misunderstanding something here,
but... I was under the impression that compatibility with GNU gettext
was a design goal of ruby-gettext.

What's the point of doubling the backslashes in newline characters,
anyway?
I thought that the strings to be translated should be inserted
basically unchanged into the .pot file...

 (But to remove
 Plural-Forms doesn't seems to be a good idea)

Definitely not a good idea, in my humble opinion.
And what's the rationale, anyway?
I think GNU gettext supports Plural-Forms, hence you won't get GNU
gettext compatibility, if you remove Plural-Forms.
Quite the opposite, I would say.

Or am I completely off-track?


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpEbE_1f3EQI.pgp
Description: PGP signature
___
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

Re: [DRE-maint] Bug#692487: apt-listbugs: shows German messages even though LANG=C (but LC_CTYPE=de_DE.UTF-8)

2013-01-30 Thread Francesco Poli
Control: reassign -1 ruby-gettext 2.2.1-3
Control: affects -1 + apt-listbugs


On Tue, 06 Nov 2012 18:16:13 +0100 Ansgar Burchardt wrote:

 apt-listbugs shows German messages even when it should not do so
 according to the locale:
[...]
 LANG=C
 LANGUAGE=
 LC_CTYPE=de_DE.UTF-8
 LC_NUMERIC=C
[...]
 LC_IDENTIFICATION=C
 LC_ALL=

Hello Ansgar,
thanks for your bug report!

I believe that this issue is caused by the ruby-gettext library.
It may or may not be the same bug as #690572...

As a consequence, I am reassigning your report to the ruby-gettext
package, but I am leaving to its maintainers to decide whether it
should be merged with #690572.

Good bye.


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgp5FuvyDMSA9.pgp
Description: PGP signature
___
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#692152: gem2deb: should not add the obsolescent DM-Upload-Allowed field

2012-11-02 Thread Francesco Poli (wintermute)
Package: gem2deb
Version: 0.3.0
Severity: normal

Hello!

I noticed that gem2deb creates the initial version of the debian/control
file with the DM-Upload-Allowed field in it.

Since this field will soon become obsolete and will stop working [1],
I think that gem2deb should no longer add it to the initial version
of the debian/control file.

[1] https://lists.debian.org/debian-devel-announce/2012/09/msg8.html

Thanks for your time!
Bye.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gem2deb depends on:
ii  build-essential   11.5
ii  debhelper 9.20120909
ii  devscripts2.12.4
ii  perl  5.14.2-14
ii  ruby  4.9
ii  ruby1.8 [ruby-interpreter]1.8.7.358-4
ii  ruby1.8-dev   1.8.7.358-4
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.194-3
ii  ruby1.9.1-dev 1.9.3.194-3
ii  rubygems  1.8.24-1

gem2deb recommends no packages.

gem2deb 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


[DRE-maint] Bug#692152: gem2deb: should not add the obsolescent DM-Upload-Allowed field

2012-11-02 Thread Francesco Poli
On Fri, 2 Nov 2012 23:33:04 +0100 Antonio Terceiro wrote:

 tags 692152 + pending
 thanks

I think you should use the

Control: tags -1 + pending

syntax, unless you Bcc the control bot...

 
 Francesco Poli (wintermute) escreveu:
[...]
  I noticed that gem2deb creates the initial version of the debian/control
  file with the DM-Upload-Allowed field in it.
  
  Since this field will soon become obsolete and will stop working [...],
  I think that gem2deb should no longer add it to the initial version
  of the debian/control file.
 
 Makes sense - I just did it in the git repo, but that won't be uploaded
 before wheezy is out.

Great!   :-)
Thanks a lot for reacting so quickly, it's really appreciated.

 
 Thanks for the heads up.

Thanks to you, Antonio!
Bye.


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpw5S1enKgMQ.pgp
Description: PGP signature
___
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#684184: closed by Hleb Valoshka 375...@gmail.com (Bug#684184: fixed in ruby-gettext 2.2.1-3)

2012-11-01 Thread Francesco Poli
Control: found -1 ruby-gettext/2.2.1-3


On Sun, 07 Oct 2012 22:21:13 + Debian Bug Tracking System wrote:

[...]
  - 0005-process-RubyToken-TkDSTRING-too.patch: rgettext won't copy
comments for translators to all subsequent messages (Closes: #684184)

Thanks for addressing this issue.
Unfortunately, the fix seems to be incomplete.

I still experience the bug, whenever ngettext() is used.

I updated my little test case (originally sent along with bug
report #684182), in order to show that the bug is not yet completely
fixed.


  $ cat myapplication.rb
  #!/usr/bin/ruby1.8
  # Copyright (C) 2012 Francesco Poli
  #
  #  This program is free software; you can redistribute it and/or modify
  #  it under the terms of the GNU General Public License as published by
  #  the Free Software Foundation; either version 2 of the License, or
  #  (at your option) any later version.
  #
  #  This program is distributed in the hope that it will be useful,
  #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #  GNU General Public License for more details.
  #
  #  You should have received a copy of the GNU General Public License with
  #  the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
  #  if not, write to the Free Software Foundation, Inc., 59 Temple Place,
  #  Suite 330, Boston, MA  02111-1307  USA
  
  require 'gettext'
  include GetText
  GetText::bindtextdomain(myapplication)
  
  count = 0
  print _(Hello everybody!\n)
  count += 1
  
  print _(You are running an internationalized Ruby program.\n)
  count += 1
  
  # TRANSLATORS: %d is the number of already printed messages
  print ngettext(You have already seen %d translatable message.\n,
 You have already seen %d translatable messages.\n,
 count) % count
  
  print _(Is this message # 3 or # 4 ?\n)
  
  print _(OK, I am tired...\n)
  
  print _(Goodbye!\n)


Let's generate the corresponding .pot file by using xgettext (from the
gettext package):

  $ xgettext --add-comments=TRANSLATORS --no-wrap \
 --copyright-holder=Francesco Poli \
 --package-name=myapplication --package-version=0.2 \
 --msgid-bugs-address=addr...@example.com \
 --language=python \
 myapplication.rb -o myapplication_XGETTEXT.pot
  $ cat myapplication_XGETTEXT.pot 
  # SOME DESCRIPTIVE TITLE.
  # Copyright (C) YEAR Francesco Poli
  # This file is distributed under the same license as the PACKAGE package.
  # FIRST AUTHOR EMAIL@ADDRESS, YEAR.
  #
  #, fuzzy
  msgid 
  msgstr 
  Project-Id-Version: myapplication 0.2\n
  Report-Msgid-Bugs-To: addr...@example.com\n
  POT-Creation-Date: 2012-11-01 11:05+0100\n
  PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n
  Last-Translator: FULL NAME EMAIL@ADDRESS\n
  Language-Team: LANGUAGE l...@li.org\n
  Language: \n
  MIME-Version: 1.0\n
  Content-Type: text/plain; charset=CHARSET\n
  Content-Transfer-Encoding: 8bit\n
  Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n
  
  #: myapplication.rb:24
  msgid Hello everybody!\n
  msgstr 
  
  #: myapplication.rb:27
  msgid You are running an internationalized Ruby program.\n
  msgstr 
  
  #. TRANSLATORS: %d is the number of already printed messages
  #: myapplication.rb:31
  #, python-format
  msgid You have already seen %d translatable message.\n
  msgid_plural You have already seen %d translatable messages.\n
  msgstr[0] 
  msgstr[1] 
  
  #: myapplication.rb:35
  msgid Is this message # 3 or # 4 ?\n
  msgstr 
  
  #: myapplication.rb:37
  msgid OK, I am tired...\n
  msgstr 
  
  #: myapplication.rb:39
  msgid Goodbye!\n
  msgstr 


Once again, everything seems to be OK.
Let's try with rgettext:

  $ rgettext myapplication.rb -o myapplication_RGETTEXT.pot
  # SOME DESCRIPTIVE TITLE.
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
  # This file is distributed under the same license as the PACKAGE package.
  # FIRST AUTHOR EMAIL@ADDRESS, YEAR.
  #
  #, fuzzy
  msgid 
  msgstr 
  Project-Id-Version: PACKAGE VERSION\n
  POT-Creation-Date: 2012-11-01 11:06+0100\n
  PO-Revision-Date: 2012-11-01 11:06+0100\n
  Last-Translator: FULL NAME EMAIL@ADDRESS\n
  Language-Team: LANGUAGE l...@li.org\n
  MIME-Version: 1.0\n
  Content-Type: text/plain; charset=UTF-8\n
  Content-Transfer-Encoding: 8bit\n
  Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n
  
  #: myapplication.rb:24
  msgid Hello everybody!\n
  msgstr 
  
  #: myapplication.rb:27
  msgid You are running an internationalized Ruby program.\n
  msgstr 
  
  #. %d is the number of already printed messages
  #: myapplication.rb:31
  msgid You have already seen %d translatable message.\n
  msgid_plural You have already seen %d translatable messages.\n
  msgstr[0] 
  msgstr[1] 
  
  #. %d is the number of already printed messages
  #: myapplication.rb:35
  msgid Is this message # 3 or # 4 ?\n
  msgstr 
  
  #: myapplication.rb:37
  msgid OK, I am

Re: [DRE-maint] Bug#690572: localization takes $LANG into account, but ignores $LC_MESSAGES

2012-10-30 Thread Francesco Poli
Control: reassign -1 ruby-gettext 2.2.1-3


On Mon, 15 Oct 2012 18:45:45 +0200 Stefano Zacchiroli wrote:

[...]
 On my system, I've LANG=it_IT.UTF8 (to require localized italian settings in
 general, such as currencies, date formats, etc.), but LC_MESSAGES=en_US.UTF-8
 (as I really can't stand translated help messages :-)).

Hello Stefano,
thanks for your kind bug report.

I understand your setup (and the rationale behind it...).
I assume you have LC_ALL unset.

 
 As of recently (I suspect starting from version 0.1.8, which carries the
 changelong line improved internationalization), apt-listbugs stopped 
 handling
 the above combination properly. In particular, apt-listbugs outputs localized
 messages in italian, whereas it should not.

The improved internationalization change you are referring to is actually:
http://anonscm.debian.org/gitweb/?p=apt-listbugs/apt-listbugs.git;a=commitdiff;h=eb856ed4deada33fd326590c356d26607f2c214e

I don't think it can alter anything with respect to the locale
environment variable handling.
I have even reviewed all the commits from apt-listbugs/0.1.7 to
apt-listbugs/0.1.8 and I haven't spotted anything that could be blamed
for this behavior change.

 Here's a simple aptitude session,
 where apt-listbugs is invoked as the first apt-get hook:
 
   
   zack@usha:~$ echo $LANG $LC_MESSAGES 
   it_IT.UTF-8 en_US.UTF-8
   zack@usha:~$ sudo aptitude -u
   [sudo] password for zack: 
   Recupero delle segnalazioni di bug... Fatto
   Analisi delle informazioni... Fatto
   Reading changelogs... Done
   (Reading database ... 369717 files and directories currently installed.)
   […]
   
 
 As you can see, apt-listbugs ignores the LC_MESSAGES override, whereas dpkg
 handles it properly.

I see.

 
 Please modify apt-listbugs to properly handle LC_MESSAGES (and similar, if
 applicable) overrides.

I can't see anything in apt-listbugs *itself* that directly handles
locale environment variables. I believe that this dirty work is
delegated to the ruby-gettext library.
I am consequently reassigning your bug report to the ruby-gettext
package.

I hope that the maintainers of ruby-gettext will manage to investigate
and fix this regression soon.

 
 Many thanks for maintaining apt-listbugs,

You're welcome: I am glad to contribute to Debian.
Bye.



-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgptFQ2IZpvPl.pgp
Description: PGP signature
___
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#691132: gem2deb: garbled sentence in gem2deb(1) man page

2012-10-21 Thread Francesco Poli (wintermute)
Package: gem2deb
Version: 0.3.0
Severity: minor

Hello!

While reading the gem2deb(1) man page, I noticed a sentence that does
not look correct to me:

|   Metadata
|   It contains the gem metadata ends up in a file named
|   ``metadata.yml`` inside the mygem-0.1.0 directory.

I am under the impression that the sentence should be changed into
something like:

+   Metadata
+   It contains the gem metadata in a file named
+   ``metadata.yml`` inside the mygem-0.1.0 directory.

In other words, I am suggesting  s/ends up//

I hope this helps clarifying the man page.

Thanks for maintaining a package intended to make the task of packaging
Ruby applications and libraries easier!

Bye.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gem2deb depends on:
ii  build-essential   11.5
ii  debhelper 9.20120909
ii  devscripts2.12.4
ii  perl  5.14.2-14
ii  ruby  4.9
ii  ruby1.8 [ruby-interpreter]1.8.7.358-4
ii  ruby1.8-dev   1.8.7.358-4
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.194-3
ii  ruby1.9.1-dev 1.9.3.194-3
ii  rubygems  1.8.24-1

gem2deb recommends no packages.

gem2deb 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


[DRE-maint] Bug#691133: gem2deb: typos in dh_ruby(1) man page

2012-10-21 Thread Francesco Poli (wintermute)
Package: gem2deb
Version: 0.3.0
Severity: minor

Hello again!

While reading the dh_ruby(1) man page, I noticed the following typos:


|   You can use this variable to override that if want to provide
|   custom metadata for the Debian package.

I would say:   s/if want/if you want/


|   This file is expect to contain a YAML document with a list of files
|   that must be ignored when checking for `require rubygems` lines.

I would say:   s/is expect/is expected/


I hope this helps to improve this man page.
Bye.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gem2deb depends on:
ii  build-essential   11.5
ii  debhelper 9.20120909
ii  devscripts2.12.4
ii  perl  5.14.2-14
ii  ruby  4.9
ii  ruby1.8 [ruby-interpreter]1.8.7.358-4
ii  ruby1.8-dev   1.8.7.358-4
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.194-3
ii  ruby1.9.1-dev 1.9.3.194-3
ii  rubygems  1.8.24-1

gem2deb recommends no packages.

gem2deb 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


[DRE-maint] Bug#688450: rdtool: misplaces a .TP in output man page (with ruby1.8)

2012-09-22 Thread Francesco Poli (wintermute)
Package: rdtool
Version: 0.6.34-4
Severity: normal
Tags: patch

Hello and thanks for maintaining rdtool in Debian!

I found a case where rd2 seems to produce a badly formed man page
(when run with ruby1.8).
I prepared a minimal test case to reproduce the bug.

  $ tar xvf frob_man_page.tar.gz
  frob
  frob.1

In this example, frob.1 is obtained on my system from frob with the
following command:

  $ ruby1.8 /usr/bin/rd2 -r rd/rd2man-lib.rb -o frob frob
  /usr/bin/rd2: output to frob.1...

If displayed with man

  $ man ./frob.1

the fake man page shows a spurious .TP at the end of the line
'To exit, use the special line STOP.'
The successive option (-d) is wrongly indented.

Applying the following patch to frob.1 seems to cure the problem
for the output man page:


diff -ruN a/frob.1 b/frob.1
--- a/frob.12012-09-22 19:16:36.0 +
+++ b/frob.12012-09-22 19:34:37.0 +
@@ -27,7 +27,8 @@
 \STOP
 .fi
 
-To exit, use the special line STOP..TP
+To exit, use the special line STOP.
+.TP
 .fi
 .B
 \-d


Applying the following patch to rd2man-lib.rb seems to fix the bug:


diff -ruN a/rd2man-lib.rb b/rd2man-lib.rb
--- a/rd2man-lib.rb 2012-06-17 17:32:23.0 +
+++ b/rd2man-lib.rb 2012-09-22 19:42:37.0 +
@@ -108,7 +108,7 @@
   if description.empty?
.TP\n.fi\n.B\n#{term}
   else
-%[.TP\n.fi\n.B\n#{term}\n#{description.join(\n)}].chomp
+%[.TP\n.fi\n.B\n#{term}\n#{description.join(\n)}]
   end
 end
 

Please investigate this bug, forward my bug report upstream,
test my patch, ..., and let me know the outcome.

Thanks for your time!
Bye.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages rdtool depends on:
ii  ruby  4.9
ii  ruby-rd   0.6.34-4
ii  ruby1.8 [ruby-interpreter]1.8.7.358-4
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.194-1

rdtool recommends no packages.

rdtool suggests no packages.

-- no debconf information


frob_man_page.tar.gz
Description: GNU Zip compressed data
___
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#684182: ruby-gettext: rgettext wrongly skips translatable strings containing the hash symbol (#)

2012-08-07 Thread Francesco Poli (wintermute)
Package: ruby-gettext
Version: 2.2.1-2
Severity: normal

Hello, thanks for maintaining ruby-gettext in Debian!

I noticed a bug in rgettext.
I prepared a small test case to reproduce it.

Let's consider the following short Ruby program:

  $ cat myapplication.rb
  #!/usr/bin/ruby1.8
  # Copyright (C) 2012 Francesco Poli
  #
  #  This program is free software; you can redistribute it and/or modify
  #  it under the terms of the GNU General Public License as published by
  #  the Free Software Foundation; either version 2 of the License, or
  #  (at your option) any later version.
  #
  #  This program is distributed in the hope that it will be useful,
  #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #  GNU General Public License for more details.
  #
  #  You should have received a copy of the GNU General Public License with
  #  the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
  #  if not, write to the Free Software Foundation, Inc., 59 Temple Place,
  #  Suite 330, Boston, MA  02111-1307  USA

  require 'gettext'
  include GetText
  GetText::bindtextdomain(myapplication)

  count = 0
  print _(Hello everybody!\n)
  count += 1

  print _(You are running an internationalized Ruby program.\n)
  count += 1

  # TRANSLATORS: %d is the number of already printed messages
  print _(You have already seen %d translatable messages.\n) % count

  print _(Is this message # 3 or # 4 ?\n)

  print _(OK, I am tired...\n)

  print _(Goodbye!\n)


Suppose we want to generate the corresponding .pot file.
We can use xgettext (from the gettext package):

  $ xgettext --add-comments=TRANSLATORS --no-wrap \
 --copyright-holder=Francesco Poli \
 --package-name=myapplication --package-version=0.1 \
 --msgid-bugs-address=addr...@example.com \
 --language=python \
 myapplication.rb -o myapplication_XGETTEXT.pot
  $ cat myapplication_XGETTEXT.pot 
  # SOME DESCRIPTIVE TITLE.
  # Copyright (C) YEAR Francesco Poli
  # This file is distributed under the same license as the PACKAGE package.
  # FIRST AUTHOR EMAIL@ADDRESS, YEAR.
  #
  #, fuzzy
  msgid 
  msgstr 
  Project-Id-Version: myapplication 0.1\n
  Report-Msgid-Bugs-To: addr...@example.com\n
  POT-Creation-Date: 2012-08-07 16:38+0200\n
  PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n
  Last-Translator: FULL NAME EMAIL@ADDRESS\n
  Language-Team: LANGUAGE l...@li.org\n
  Language: \n
  MIME-Version: 1.0\n
  Content-Type: text/plain; charset=CHARSET\n
  Content-Transfer-Encoding: 8bit\n

  #: myapplication.rb:24
  msgid Hello everybody!\n
  msgstr 

  #: myapplication.rb:27
  msgid You are running an internationalized Ruby program.\n
  msgstr 

  #. TRANSLATORS: %d is the number of already printed messages
  #: myapplication.rb:31
  #, python-format
  msgid You have already seen %d translatable messages.\n
  msgstr 

  #: myapplication.rb:33
  msgid Is this message # 3 or # 4 ?\n
  msgstr 

  #: myapplication.rb:35
  msgid OK, I am tired...\n
  msgstr 

  #: myapplication.rb:37
  msgid Goodbye!\n
  msgstr 

Everything seems to be OK.
But the language is actually Ruby, not Python.
Hence, rgettext should be the tool of choice.
Let's try with rgettext, then:

  $ rgettext myapplication.rb -o myapplication_RGETTEXT.pot
  $ cat myapplication_RGETTEXT.pot 
  # SOME DESCRIPTIVE TITLE.
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
  # This file is distributed under the same license as the PACKAGE package.
  # FIRST AUTHOR EMAIL@ADDRESS, YEAR.
  #
  #, fuzzy
  msgid 
  msgstr 
  Project-Id-Version: PACKAGE VERSION\n
  POT-Creation-Date: 2012-08-07 16:39+0200\n
  PO-Revision-Date: 2012-08-07 16:39+0200\n
  Last-Translator: FULL NAME EMAIL@ADDRESS\n
  Language-Team: LANGUAGE l...@li.org\n
  MIME-Version: 1.0\n
  Content-Type: text/plain; charset=UTF-8\n
  Content-Transfer-Encoding: 8bit\n
  Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n

  #: myapplication.rb:24
  msgid Hello everybody!\n
  msgstr 

  #: myapplication.rb:27
  msgid You are running an internationalized Ruby program.\n
  msgstr 

  #. %d is the number of already printed messages
  #: myapplication.rb:31
  msgid You have already seen %d translatable messages.\n
  msgstr 

  #. %d is the number of already printed messages
  #: myapplication.rb:35
  msgid OK, I am tired...\n
  msgstr 

  #. %d is the number of already printed messages
  #: myapplication.rb:37
  msgid Goodbye!\n
  msgstr 

Wait!
Where is the string from line 33 ?!?
It seems that it was wrongly skipped, since it contains hash
symbols (#)...
I think that this should not happen.

Please fix this bug and/or forward this bug report upstream.
Thanks for your time!



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8

[DRE-maint] Bug#684184: ruby-gettext: rgettext wrongly copies comments for translators to all subsequent messages

2012-08-07 Thread Francesco Poli (wintermute)
Package: ruby-gettext
Version: 2.2.1-2
Severity: normal

Hello again!

I noticed another bug in rgettext.

Please see the test case described in bug #684182 [1].

[1] http://bugs.debian.org/684182

In that test case, a comment for translators is included for the
string from line 31.
xgettext correctly places this comment before the msgid from line 31.
On the other hand, rgettext also copies it before all subsequent
translatable messages (until another comment for translators is found,
which never happens in this minimal test case...).

I think that this should not happen.

Please fix this bug and/or forward this bug report upstream.
Thanks for your time!


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ruby-gettext depends on:
ii  ruby  4.9
ii  ruby-locale   2.0.5-5
ii  ruby1.8 [ruby-interpreter]1.8.7.358-4
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.194-1

ruby-gettext recommends no packages.

ruby-gettext 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


[DRE-maint] Bug#594990: libhttpclient-ruby1.8: invalid HTTP header on some locales

2010-09-09 Thread Francesco Poli
On Wed, 08 Sep 2010 17:20:17 +0200 Piviul wrote:

 Francesco Poli scrisse in data 06/09/2010 22:42:
  Please try the following workaround.
[...]
 Ok, that's seems to work.
[...] 
 Yes, works!

Great news!
This means that we now have a temporary workaround for your issue.

Now it's up to libhttpclient-ruby1.8 package maintainers to deal with
the actual bug (fixing it and/or forwarding it upstream).
Good luck!

 
 Thank you very much

You're welcome, I was happy to help!  ;-)

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


pgpOFJEGZyGWE.pgp
Description: PGP signature
___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-ruby-extras-maintainers

[DRE-maint] Bug#594990: libhttpclient-ruby1.8: invalid HTTP header on some locales

2010-09-07 Thread Francesco Poli
On Mon, 06 Sep 2010 10:15:02 +0200 Piviul wrote:

 Francesco Poli scrisse in data 03/09/2010 20:06:
  Editing /etc/apt/apt.conf.d/10apt-listbugs is useful to work around the
  issue while you are installing/upgrading packages (for instance with
  aptitude safe-upgrade).
  Does installing/upgrading packages work for you with this workaround?

 No, I'm sorry but doesn't seems to work:
[...]
 E: apt Pre-Install-Pkgs non ha restituito il valore atteso VERSION 2
[...]
 Thank you very much Francesco, if I'll find a workaround for this
 problem I'll be very happy!

Sorry, that's my fault!:-(
I forgot to adapt the other lines!   :-o

Please try the following workaround.
Starting from the default configuration file:

$ cat /etc/apt/apt.conf.d/10apt-listbugs 
// Check all packages whether they has critical bugs before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {/usr/sbin/apt-listbugs apt || exit 10;};
DPkg::Tools::Options::/usr/sbin/apt-listbugs ;
DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version 2;
// AptListbugs::IgnoreRegexp FTBFS;

Please modify three lines, so that the file becomes:

$ cat /etc/apt/apt.conf.d/10apt-listbugs
// Check all packages whether they has critical bugs before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {env LC_NUMERIC=C /usr/sbin/apt-listbugs apt || exit 
10;};
DPkg::Tools::Options::env ;
DPkg::Tools::Options::env::Version 2;
// AptListbugs::IgnoreRegexp FTBFS;

At this point, please try out the following command:

$ sudo aptitude safe-upgrade

Does this command work for you now?

Please also try out the following command:

$ env LC_NUMERIC=C apt-listbugs list apt-listbugs

Does this command work for you?



-- 
 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


pgpqlEpG5nalH.pgp
Description: PGP signature
___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-ruby-extras-maintainers

[DRE-maint] Bug#594990: libhttpclient-ruby1.8: invalid HTTP header on some locales

2010-09-05 Thread Francesco Poli
On Fri, 03 Sep 2010 09:42:38 +0200 Paolo Sala wrote:

 Francesco Poli scrisse in data 02/09/2010 23:39:
[...]
  Instead, I think you should temporary work around this bug, by editing
  /etc/apt/apt.conf.d/10apt-listbugs, as I previously suggested, and wait
  for this bug to be really fixed!

 The workaround doesn't work:
 
 $ cat /etc/apt/apt.conf.d/10apt-listbugs | grep Pre-Install-Pkgs
 DPkg::Pre-Install-Pkgs {env LC_ALL=C /usr/sbin/apt-listbugs apt || exit
 10;};
 $ apt-listbugs list apt-listbugs
 Lettura dei campi dei pacchetti... Fatto
 Lettura dello stato dei pacchetti... Fatto
 Recupero delle segnalazioni di bug... 0% Fallito
  E: HTTP GET non riuscita

Wait, I probably failed to explain myself clearly!

Editing /etc/apt/apt.conf.d/10apt-listbugs is useful to work around the
issue while you are installing/upgrading packages (for instance with
aptitude safe-upgrade).
Does installing/upgrading packages work for you with this workaround?

When you manually invoke apt-listbugs from the command line, you have
to manually add the env LC_ALL=C anyway!
As you told me, issuing

$ env LC_ALL=C apt-listbugs list apt-listbugs

works for you.
If you like, you can create an alias for env LC_ALL=C apt-listbugs ...

 
  For reasons explained below, I think the workaround may be made even
  less invasive: when you edit /etc/apt/apt.conf.d/10apt-listbugs , you
  may change the line
 
  DPkg::Pre-Install-Pkgs {/usr/sbin/apt-listbugs apt || exit 10;};
 
  into
 
  DPkg::Pre-Install-Pkgs {env LC_NUMERIC=C /usr/sbin/apt-listbugs apt || 
  exit 10;};
 
  This should be enough to temporary work around the bug, while letting
  apt-listbugs speak in your language of choice!
  Please test it out and see if it works...

 doesn't work too...

Please try

$ env LC_NUMERIC=C apt-listbugs list apt-listbugs

Does this work for you?

 furthermore now if I execute aptitude safe-upgrade
 when aptitude invoke apt-listbugs I get the following error:
 
 E: Il sottoprocesso /usr/sbin/apt-listbugs apt || exit 10 ha restituito
 un codice d'errore (10)
 E: Failure running script /usr/sbin/apt-listbugs apt || exit 10
 Errore durante l'installazione di un pacchetto. Tentativo di ripristino:
 
 I have write someting wrong in /etc/apt/apt.conf.d/10apt-listbugs?

I don't think so...

If I understand correctly, you are saying that editing
/etc/apt/apt.conf.d/10apt-listbugs and adding env LC_ALL=C makes
apt-listbugs work correctly during package installation/upgrade,
but, on the other hand, adding env LC_NUMERIC=C instead breaks the
invocation of apt-listbugs during package installation/upgrade.

Can you confirm this?

[...]
  Finally, I have to admit that I am still unable to reproduce the bug:
  I've been trying to get that HTTP/1,1 header in apt-listbugs debug
  wire dump, but no success yet...   :-(

 I think something wrong happened during the upgrade process because I
 have two others little bugs;
[...]

I have nothing to comment on those two additional issues: I am sorry,
but I am probably unable to help you on those ones...   :-(

 
 Have a great day

The same to you.

-- 
 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


pgpBY8t1sfI0e.pgp
Description: PGP signature
___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-ruby-extras-maintainers