Bug#749193: apt-listbugs: Reemergence of ruby encoding troubles

2024-02-10 Thread François Revol

Same here on apt upgrade, it stops on wine:



Analyse des informations Trouvé/Corrigé… Fait
bogues de gravité grave sur python3-jedi (0.18.2-1 → 0.19.1+ds-1) attente de traitement>
 b1 - #1063491 - python3-jedi: unvendoring python3-typeshed breaks 
other packages
bogues de gravité serious sur adwaita-icon-theme (45.0-2 → 46~beta-1) 


 b2 - #1063640 - adwaita-icon-theme: cursor theme not found
bogues de gravité serious sur fwupd (1.9.11-1 → 1.9.13-1) traitement>
 b3 - #1061731 - fwupd: Failed to load daemon: failed to load engine: 
Failed to load config: Key file does not have group “redfish”
bogues de gravité serious sur wine (8.0.2~repack-2 → 9.0~repack-2) 

/usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:842:in `+': incompatible 
character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:842:in 
`block (4 levels) in display_bugs'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/debian/bug.rb:69:in 
`block in each_by_category'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/debian/bug.rb:68:in 
`each'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/debian/bug.rb:68:in 
`each_by_category'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:821:in 
`block (3 levels) in display_bugs'

from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:817:in `each'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:817:in 
`block (2 levels) in display_bugs'

from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:816:in `each'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:816:in 
`block in display_bugs'

from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:815:in `each'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:815:in 
`display_bugs'

from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:465:in `view'
from /usr/bin/apt-listbugs:632:in `'
E: Le sous-processus /usr/bin/apt-listbugs apt a renvoyé un code 
d'erreur (1)

E: Failure running script /usr/bin/apt-listbugs apt





Passing LANG=C seems to work around it:

Parsing Found/Fixed information... Done
grave bugs of python3-jedi (0.18.2-1 -> 0.19.1+ds-1) 
 b1 - #1063491 - python3-jedi: unvendoring python3-typeshed breaks 
other packages

serious bugs of adwaita-icon-theme (45.0-2 -> 46~beta-1) 
 b2 - #1063640 - adwaita-icon-theme: cursor theme not found
serious bugs of fwupd (1.9.11-1 -> 1.9.13-1) 
 b3 - #1061731 - fwupd: Failed to load daemon: failed to load engine: 
Failed to load config: Key file does not have group “redfish”
serious bugs of wine (8.0.2~repack-2 -> 9.0~repack-2) Version>
 b4 - #1061655 - wine: FTBFS with error: unknown conversion type 
character ‘I’ in format [-Werror=format=] (Fixed: wine/9.0~repack-3)

Summary:
 adwaita-icon-theme(1 bug), fwupd(1 bug), wine(1 bug), python3-jedi(1 bug)




Could it be the UTF-8 single quotes around the I that triggers it?
  e2 80 98 49 e2 80 99 0a   |...I|



Bug#749193: apt-listbugs: Reemergence of ruby encoding troubles

2023-01-13 Thread Jochen Sprickerhof
Package: ruby-soap4r
Version: 2.0.5-5
Followup-For: Bug #749193

Hi,

seems like I was just bitten by this when installing apt-cacher-ng:

# aptitude -u
Performing actions...
Laden der Fehlerberichte … Erledigt
»Found/Fixed«-Informationen werden ausgewertet … Erledigt
serious Fehler von apt-cacher-ng (→ 3.7.4-1+b2) 
/usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:828:in `+': incompatible 
character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:828:in `block (4 
levels) in display_bugs'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/debian/bug.rb:69:in `block 
in each_by_category'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/debian/bug.rb:68:in `each'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/debian/bug.rb:68:in 
`each_by_category'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:807:in `block (3 
levels) in display_bugs'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:803:in `each'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:803:in `block (2 
levels) in display_bugs'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:802:in `each'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:802:in `block in 
display_bugs'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:801:in `each'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:801:in 
`display_bugs'
from /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:451:in `view'
from /usr/bin/apt-listbugs:626:in `'
E: Unterprozess /usr/bin/apt-listbugs apt hat Fehlercode zurückgegeben (1)
E: Failure running script /usr/bin/apt-listbugs apt
Press Return to continue, 'q' followed by Return to quit.
q
root@fenchel:~# LANG=C.UTF-8 aptitude -u
Performing actions...
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
serious bugs of apt-cacher-ng (→ 3.7.4-1+b2) 
 b1 - #980923 - acngtools eats all the CPU and doesn’t finish daily cron with 
merged pdiffs (Fixed: apt-cacher-ng/3.6.2-1)
   Merged with: 977611
Summary:
 apt-cacher-ng(1 bug)
Are you sure you want to install/upgrade the above packages? [Y/n/?/...]



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

Kernel: Linux 6.1.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information


Bug#749193: apt-listbugs: Reemergence of ruby encoding troubles

2014-05-25 Thread Francesco Poli
On Sun, 25 May 2014 02:06:38 +0200 Stefan Skoglund wrote:

[...]
 apt-listbugs fails for certain bug reports ?

Hello Stefan, thanks for your bug report.

I see that you test LANG=sv_SE.utf-8 with lowercase utf, which
reminds me of bug #725496 [1]. That other bug should however be fixed
in current ruby-gettext, so it's probably not the same issue you are
experiencing...

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

I will however try to reproduce the bug soon and then I'll get back to
you... Please stay tuned!  ;-)

[...]
 
 Should i pick up wireshark and take a dump of the http-transaction ?

I am under the impression that the issue in how Ruby handles locales,
hence sniffing the network traffic won't probably be of much use... Or
maybe not? I don't know...


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


pgpWo2cRtRHZ7.pgp
Description: PGP signature


Bug#749193: apt-listbugs: Reemergence of ruby encoding troubles

2014-05-24 Thread Stefan Skoglund

Package: apt-listbugs
Version: 0.1.13
Severity: important
Tags: l10n upstream



-- System Information:
Debian Release: jessie/sid
 APT prefers oldstable-updates
 APT policy: (500, 'oldstable-updates'), (500, 
'oldstable-proposed-updates'), (500, 'testing'), (500, 'stable'), (500, 
'oldstable'

)
Architecture: i386 (i686)

Kernel: Linux 3.14-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt-listbugs depends on:
ii  apt 1.0.3
ii  ruby1:2.1.0.1
ii  ruby-debian 0.3.8+b3
ii  ruby-gettext3.1.1-1
ii  ruby-soap4r 2.0.5-3
ii  ruby2.1 [ruby-interpreter]  2.1.2-2

Versions of packages apt-listbugs recommends:
pn  ruby-httpclient  none
pn  ruby-xmlparser   none

Versions of packages apt-listbugs suggests:
ii  debianutils  4.4
ii  elinks [www-browser] 0.12~pre6-4
ii  iceweasel [www-browser]  24.5.0esr-1
ii  konqueror [www-browser]  4:4.12.4-1
ii  lynx-cur [www-browser]   2.8.8pre5-1
ii  reportbug6.5.0
ii  w3m [www-browser]0.5.3-15

-- no debconf information

apt-listbugs fails for certain bug reports ?

either way:
my normal locale is sv_SE.utf-8 but for now im on en_GB.utf-8
--
[stefan@LOKELDARN@compaq:~]$ locale
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE=en_GB.UTF-8
LC_NUMERIC=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE=en_GB.UTF-8
LC_MONETARY=en_GB.UTF-8
LC_MESSAGES=en_GB.UTF-8
LC_PAPER=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_ADDRESS=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_ALL=
--


--
[stefan@LOKELDARN@compaq:~]$ LANG=sv_SE.utf-8 apt-listbugs list 
sound-juicer

Hämtar felrapporter... Klar
Tolkar hittad/tillrättad information... Klar
grave bugs of sound-juicer (- ) Resolved in some Version
/usr/share/apt-listbugs/apt-listbugs/logic.rb:611:in `block (4 levels) 
in display_bugs': incompatible character encodings: ASCII-8B

IT and UTF-8 (Encoding::CompatibilityError)
   from /usr/share/apt-listbugs/debian/bug.rb:66:in `block in 
each_by_category'

   from /usr/share/apt-listbugs/debian/bug.rb:65:in `each'
   from /usr/share/apt-listbugs/debian/bug.rb:65:in 
`each_by_category'
   from /usr/share/apt-listbugs/apt-listbugs/logic.rb:594:in 
`block (3 levels) in display_bugs'
   from /usr/share/apt-listbugs/apt-listbugs/logic.rb:590:in 
`each'
   from /usr/share/apt-listbugs/apt-listbugs/logic.rb:590:in 
`block (2 levels) in display_bugs'
   from /usr/share/apt-listbugs/apt-listbugs/logic.rb:589:in 
`each'
   from /usr/share/apt-listbugs/apt-listbugs/logic.rb:589:in 
`block in display_bugs'
   from /usr/share/apt-listbugs/apt-listbugs/logic.rb:588:in 
`each'
   from /usr/share/apt-listbugs/apt-listbugs/logic.rb:588:in 
`display_bugs'
   from /usr/share/apt-listbugs/apt-listbugs/logic.rb:375:in 
`view'

   from /usr/sbin/apt-listbugs:513:in `main'
[stefan@LOKELDARN@compaq:~]$ echo $LANG
en_GB.UTF-8
[stefan@LOKELDARN@compaq:~]$ apt-listbugs list sound-juicer
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
grave bugs of sound-juicer (→ ) Resolved in some Version
#717391 - sound-juicer: Refuses to start: “The plugin necessary for 
file access was not found” (Fixed: 3.8.0-2 sound-juicer/3.11.9

0-1)
Summary:
sound-juicer(1 bug)
--

which means that aptitude will fail:
'
--
[sudo root@compaq: /home/stefan]#  LANG=sv_SE.utf-8 aptitude -t jessie 
install sound-juicer

Följande NYA paket kommer att bli installerade:
 brasero-common{a} libbrasero-media3-1{a} libburn4{a} libisofs6{a} 
libjte1{a}

 libtotem-plparser18{a} sound-juicer
Följande paket är REKOMMENDERADE men kommer INTE att installeras:
 cdrdao gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly
0 paket att uppgradera, 7 att nyinstallera. 0 att ta bort och 4 inte 
uppgraderade.
Behöver hämta 5 636 kB arkiv. Efter uppackning kommer 19,5 MB 
diskplats att användas.

Vill du fortsätta? [Y/n/?] y
Läs: 1 http://ftp.se.debian.org/debian/ jessie/main brasero-common all 
3.10.0-1 [2 245 kB]
Läs: 2 http://ftp.se.debian.org/debian/ jessie/main libburn4 i386 
1.3.2-1 [141 kB]
Läs: 3 http://ftp.se.debian.org/debian/ jessie/main libjte1 i386 
1.19-2 [27,9 kB]
Läs: 4 http://ftp.se.debian.org/debian/ jessie/main libisofs6 i386 
1.3.2-1 [160 kB]
Läs: 5 http://ftp.se.debian.org/debian/ jessie/main 
libtotem-plparser18 i386 3.10.2-1 [187 kB]
Läs: 6 http://ftp.se.debian.org/debian/ jessie/main 
libbrasero-media3-1 i386 3.10.0-1 [891 kB]
Läs: 7 http://ftp.se.debian.org/debian/ jessie/main sound-juicer i386 
3.4.0-3 [1 985 kB]

Hämtade 5 636 kB på 7s (789 kB/s)
Hämtar felrapporter... Klar
Tolkar hittad/tillrättad information... Klar
grave bugs of sound-juicer (- 3.4.0-3) Resolved in some Version
/usr/share/apt-listbugs/apt-listbugs/logic.rb:611:in `block (4 levels) 
in display_bugs': incompatible character encodings: ASCII-8B

IT and UTF-8