Debian Bug report logs - #829534
apt: locale-specific floats trigger warnings in debconf-apt-progress (d-i logs)

version graph

Package: apt; Maintainer for apt is APT Development Team <[email protected]>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: Cyril Brulebois <[email protected]>

Date: Mon, 4 Jul 2016 05:42:01 UTC

Severity: important

Found in version apt/1.2.14

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], [email protected], [email protected], [email protected], lioth.debian.org, [ Please keep debian-boot@lists, .debian.org in the loop when replying. I've also cc, -ed [email protected] for informati, on, but I think it would be best to be fixed in apt. , ], APT Development Team <[email protected]>:
Bug#829534; Package apt. (Mon, 04 Jul 2016 05:42:05 GMT) (full text, mbox, link).


Acknowledgement sent to Cyril Brulebois <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], [email protected], [email protected], lioth.debian.org, [ Please keep debian-boot@lists, .debian.org in the loop when replying. I've also cc, -ed [email protected] for informati, on, but I think it would be best to be fixed in apt. , ], APT Development Team <[email protected]>. (Mon, 04 Jul 2016 05:42:05 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Cyril Brulebois <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: apt: locale-specific floats trigger warnings in debconf-apt-progress (d-i logs)
Date: Mon, 04 Jul 2016 07:39:00 +0200
Package: apt
Version: 1.2.14
Severity: important


Hi,

I've noticed the following kind of messages in d-i syslog:
| Argument "0,0000" isn't numeric in multiplication (*) at /usr/bin/debconf-apt-progress line 168, <STDIN> line 4.

It can be reproduced outside d-i by toying with:

  sudo debconf-apt-progress -- apt-get -q -y remove htop
  sudo debconf-apt-progress -- apt-get -q -y install htop

That works fine with e.g. LANG=en_GB.UTF-8, but triggers said warnings
with LANG=fr_FR.UTF-8.

It seems the following commit was aiming at fixing this:
,---
| commit 55c6402be4297d644de774b1fef70b88f91a73e9
| Author: David Kalnischkies <[email protected]>
| Date:   Fri May 27 18:10:39 2016 +0200
| 
|     prevent C++ locale number formatting in text APIs
|     
|     Setting the C++ locale via std::locale::global(std::locale("")); which
|     would otherwise default to the default C locale (aka: unaffected by
|     setlocale) effects the formatting of numeric types in IO streams, which
|     for output for humans is perfectly sensible, but breaks our many text
|     interfaces used and parsed by us and others without expecting the
|     numbers to be formatted.
|     
|     Closes: #825396
|     (cherry picked from commit b58e2c7c56b1416a343e81f9f80cb1f02c128e25)
`---

but that doesn't seem to be sufficient. Example:
,---
| dlstatus:1:0,0000:Téléchargement du fichier 1 sur 1
| dlstatus:1:100,0000:Téléchargement du fichier 1 sur 1
| pmstatus:dpkg-exec:0,0000:Exécution de dpkg
| pmstatus:htop:0,0000:Installation de htop (amd64)
| pmstatus:htop:16,6667:Préparation de htop (amd64)
| pmstatus:htop:33,3333:Décompression de htop (amd64)
| pmstatus:htop:50,0000:Préparation de la configuration de htop (amd64)
| pmstatus:man-db:50,0000:Exécution des actions différées (« trigger ») de man-db
| pmstatus:mime-support:50,0000:Exécution des actions différées (« trigger ») de mime-support
| pmstatus:desktop-file-utils:50,0000:Exécution des actions différées (« trigger ») de desktop-file-utils
| pmstatus:dpkg-exec:50,0000:Exécution de dpkg
| pmstatus:htop:50,0000:Configuration de htop (amd64)
| pmstatus:htop:66,6667:Configuration de htop (amd64)
| pmstatus:htop:83,3333:htop (amd64) installé
| pmstatus:dpkg-exec:83,3333:Exécution de dpkg
`---


KiBi.



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Mon Nov 11 13:29:41 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.