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.