Set LC_ALL=C into dib-run-parts env

Force LC_ALL to C to allow printf to work independently
from the locale. Gives invalid number error if run in non-english
locale.

Change-Id: Ia68853505485fefbf0890313456e7edb6097666b
Closes-Bug: #1335932
This commit is contained in:
Yolanda Robla 2014-07-01 10:47:00 +02:00
parent 5ee5aa5c89
commit 8ed645f046

View File

@ -101,7 +101,7 @@ for target in $(find . -name 'start_*' -printf '%f\n') ; do
start_seconds=$(cat $target)
stop_seconds=$(cat $stop_file)
duration=$(python -c "print($stop_seconds - $start_seconds)")
LC_NUMERIC=C printf "%-40s %10.3f\n" ${target##start_} $duration
LC_NUMERIC=C LC_ALL=C printf "%-40s %10.3f\n" ${target##start_} $duration
done
popd > /dev/null
rm -rf $PROFILE_DIR