meson: run generate_version.sh in a C locale

Previously, only the date command inside the script was run with
LC_TIME=C.

But there’s no reason to be that conservative; we absolutely do not
want _anything_ in that script to generate locale dependent output.
This commit is contained in:
Daniel Eklöf 2021-08-25 19:03:32 +02:00
parent 427e0ce418
commit b8dd247111
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 2 deletions

View file

@ -17,7 +17,7 @@ if [ -d "${src_dir}/.git" ] && command -v git > /dev/null; then
git_branch=$(git rev-parse --abbrev-ref HEAD)
cd "${workdir}"
new_version="${git_version} ($(env LC_TIME=C date "+%b %d %Y"), branch '${git_branch}')"
new_version="${git_version} ($(date "+%b %d %Y"), branch '${git_branch}')"
else
new_version="${default_version}"
fi