Your message dated Sun, 11 Oct 2015 19:34:47 +0000
with message-id <[email protected]>
and subject line Bug#799194: fixed in ruby-gettext 3.1.7-1
has caused the Debian Bug report #799194,
regarding ruby-gettext: may return rubbish when LANGUAGE is set and LC_CTYPE='C'
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
799194: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799194
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ruby-gettext
Version: 3.1.6-1
Severity: normal
Hello!
As discussed on bug #799050 [1] and on [email protected] [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 `<main>'
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 ruby 1: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
--- End Message ---
--- Begin Message ---
Source: ruby-gettext
Source-Version: 3.1.7-1
We believe that the bug you reported is fixed in the latest version of
ruby-gettext, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Hleb Valoshka <[email protected]> (supplier of updated ruby-gettext package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 23 Sep 2015 12:22:41 +0300
Source: ruby-gettext
Binary: ruby-gettext
Architecture: source all
Version: 3.1.7-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Extras Maintainers
<[email protected]>
Changed-By: Hleb Valoshka <[email protected]>
Description:
ruby-gettext - gettext for Ruby
Closes: 799194
Changes:
ruby-gettext (3.1.7-1) unstable; urgency=medium
.
* New upstream release (Closes: #799194).
* Remove upstreamed patch
0005-remove-character-classes-with-duplicated-range.patch.
Checksums-Sha1:
88ba65df1a55dba40c1032f7acc9eca1356f608d 2127 ruby-gettext_3.1.7-1.dsc
5495ed4647767c767da67c92a08d27e3eb9080fd 308275 ruby-gettext_3.1.7.orig.tar.gz
af59a0ae87636ff32d4b5ba800a082132400b883 10296
ruby-gettext_3.1.7-1.debian.tar.xz
eebba89f6beabacd5583dc0d7fde8ce765cfb16c 132762 ruby-gettext_3.1.7-1_all.deb
Checksums-Sha256:
84030e913b324c54405d2eb15f719468742e5735dea1adf52a95e35cacc606d9 2127
ruby-gettext_3.1.7-1.dsc
70d5eb9230597f5839040ca60b94110755ea54b574a515c846a0eb0607700a85 308275
ruby-gettext_3.1.7.orig.tar.gz
f8365a0c6a589a89aa9da087e5ad8a5b607d7a0c121d2032f25d57a9cda4f5cc 10296
ruby-gettext_3.1.7-1.debian.tar.xz
26a4e4465c39d206a938af6c994f3488e8b36d706006f2af4765070bdb717ff6 132762
ruby-gettext_3.1.7-1_all.deb
Files:
4d43762cfab21050fe21cf4912e2cda0 2127 ruby optional ruby-gettext_3.1.7-1.dsc
144d926295329fab05f74df5dca2b389 308275 ruby optional
ruby-gettext_3.1.7.orig.tar.gz
589cc1dce68543b2c23c6999bd22b2f0 10296 ruby optional
ruby-gettext_3.1.7-1.debian.tar.xz
f3836df1573148b9a199a939315867e3 132762 ruby optional
ruby-gettext_3.1.7-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCgAGBQJWGreYAAoJELGIrlV59JL4jdgP/3+G4pxefxAYxQvEcldSQ8vb
HNBX5VrpnPrf2qWUcKbutmH29lE1/hHs9DkGDfUFisRkfyuxwETdz3pW0lceZrSB
E22mFRYzIC3ZnL7EXaVRwW1m2PRjGt3TQmgnsXMAl+rXtigpSZ9HMEZHtlTSofXV
pFnF9R0YHsk4c4j7HzTNYJePE/WwRbWAjYObrwBOGqS6Qp6rRwHoy3EqTg7nqMZ7
eFRXM/YQv1rwtNoTZYf0SEGouL2PB8d6+T/OLeKNf0qYpckc7UYokJBYx1wGcBlq
kQNf3o5gcRynjpH373mkzxUMu/FzUjOcR3UyOZwjV4AfgiS7rnqOp7ZBktjdz5ng
iipPq9qPdzKusCS1HRU9nW3SZKXE5pJXPjzg2O5ewkeYsAqD6FjtHUpU7sxgs0M+
VQzzGcaMaFnYQdy8oYtoEI+sNyhAYQLk2fkEDXbPr6CcwosjskQibiHeKB+HGcNu
IMCWj5Us9ji2w44zHUCP/8HCHSi4VqJFjYCm32Gno9nmGqnKgrBgDoTCdaTtPJZD
xIgixYr1Ku/frsXedYVBJux44toy307Ak/6JwbkXysEDAOs33Fw/HLlo6A66mid9
+r2amlEZL62VoKWYPw/KKnq57bQO0Gwg2pxKUtYGdgDAVeDTieXRAwczjYkStrSl
mBhfsGQ8A2Qx3TqDSs3F
=DEFr
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers