From de8e004cdefb9f908c72bef3f19635a7e7708aae Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 2 Jun 2017 14:00:17 +0200 Subject: conf/default.conf: add "export LANG=C" --- bin/build-master-status | 4 ++-- conf/default.conf | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/build-master-status b/bin/build-master-status index 62ffd9a..61eef0d 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -26,8 +26,8 @@ printf 'The build list contains %d tasks (incl. broken: %d).\n' "$[${tasks}-${br printf 'There are %d testing/staging packages.\n' "${staging}" printf 'There are %d broken packages.\n' "${broken}" if [ $[${broken}+${staging}] -ne 0 ]; then - LANG=C printf '%.1f%% of all packages are broken.\n' "$(bc <<< "scale=10; 100*${broken}/(${broken}+${staging})")" + printf '%.1f%% of all packages are broken.\n' "$(bc <<< "scale=10; 100*${broken}/(${broken}+${staging})")" fi if [ $[${staging}+${tasks}-${broken}] -ne 0 ]; then - LANG=C printf '%.1f%% of the planned work has been done.\n' "$(bc <<< "scale=10; 100*${staging}/(${staging}+${tasks}-${broken})")" + printf '%.1f%% of the planned work has been done.\n' "$(bc <<< "scale=10; 100*${staging}/(${staging}+${tasks}-${broken})")" fi diff --git a/conf/default.conf b/conf/default.conf index 60cf53c..de0ab65 100755 --- a/conf/default.conf +++ b/conf/default.conf @@ -3,6 +3,7 @@ # set up some common variables set -e +export LANG=C # dirty hack to get this stuff debugable from a bash if [ "x$0" == "x-bash" ] || [ "x$0" == "xbash" ]; then -- cgit v1.2.3-70-g09d2