Skip to content

Commit

Permalink
Merge pull request #5544 from craigcomstock/ENT-11885/master
Browse files Browse the repository at this point in the history
ENT-11885: Adjusted masterfiles stage script to choose an available locale
  • Loading branch information
craigcomstock authored Jun 19, 2024
2 parents 47bf207 + b99fa9a commit 003f410
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion contrib/masterfiles-stage/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,16 @@ git_cfbs_deploy_refspec() {
# (See long comment at end of function def.)

# The chipmunk in cfbs output breaks things without this or similar
export LC_ALL=en_US.utf-8
# The chipmunk in cfbs output breaks things without this or similar
if [ -f "/etc/locale.conf" ]; then
source "/etc/locale.conf"
export LC_ALL="$LANG" # retrieved from locale.conf
else
_LOCALE=$(locale -a | grep -i utf | head -1)
if [ -n "$_LOCALE" ]; then
export LC_ALL="$_LOCALE"
fi
fi

# Ensure absolute pathname is given
[ "${1:0:1}" = / ] ||
Expand Down

0 comments on commit 003f410

Please sign in to comment.