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:
parent
5ee5aa5c89
commit
8ed645f046
@ -101,7 +101,7 @@ for target in $(find . -name 'start_*' -printf '%f\n') ; do
|
|||||||
start_seconds=$(cat $target)
|
start_seconds=$(cat $target)
|
||||||
stop_seconds=$(cat $stop_file)
|
stop_seconds=$(cat $stop_file)
|
||||||
duration=$(python -c "print($stop_seconds - $start_seconds)")
|
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
|
done
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
rm -rf $PROFILE_DIR
|
rm -rf $PROFILE_DIR
|
||||||
|
Loading…
Reference in New Issue
Block a user