From b58e2c7c56b1416a343e81f9f80cb1f02c128e25 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 27 May 2016 18:10:39 +0200 Subject: 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 --- test/integration/test-apt-progress-fd-deb822 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/integration/test-apt-progress-fd-deb822') diff --git a/test/integration/test-apt-progress-fd-deb822 b/test/integration/test-apt-progress-fd-deb822 index 58fd73275..a8d59608d 100755 --- a/test/integration/test-apt-progress-fd-deb822 +++ b/test/integration/test-apt-progress-fd-deb822 @@ -17,12 +17,12 @@ exec 3> apt-progress.log testsuccess aptget install testing=0.1 -y -o APT::Status-deb822-Fd=3 testfileequal './apt-progress.log' 'Status: progress -Percent: 0 +Percent: 0.0000 Message: Running dpkg Status: progress Package: testing:amd64 -Percent: 0 +Percent: 0.0000 Message: Installing testing (amd64) Status: progress @@ -37,16 +37,16 @@ Message: Unpacking testing (amd64) Status: progress Package: testing:amd64 -Percent: 50 +Percent: 50.0000 Message: Preparing to configure testing (amd64) Status: progress -Percent: 50 +Percent: 50.0000 Message: Running dpkg Status: progress Package: testing:amd64 -Percent: 50 +Percent: 50.0000 Message: Configuring testing (amd64) Status: progress -- cgit v1.2.3