Merge "stackrc set the LC_ALL to C"

This commit is contained in:
Jenkins 2015-09-28 20:19:43 +00:00 committed by Gerrit Code Review
commit b27ab6fb25
2 changed files with 7 additions and 7 deletions

View File

@ -27,13 +27,6 @@ set -o xtrace
# Make sure custom grep options don't get in the way # Make sure custom grep options don't get in the way
unset GREP_OPTIONS unset GREP_OPTIONS
# Sanitize language settings to avoid commands bailing out
# with "unsupported locale setting" errors.
unset LANG
unset LANGUAGE
LC_ALL=C
export LC_ALL
# Make sure umask is sane # Make sure umask is sane
umask 022 umask 022

View File

@ -7,6 +7,13 @@
[[ -z "$_DEVSTACK_STACKRC" ]] || return 0 [[ -z "$_DEVSTACK_STACKRC" ]] || return 0
declare -r _DEVSTACK_STACKRC=1 declare -r _DEVSTACK_STACKRC=1
# Sanitize language settings to avoid commands bailing out
# with "unsupported locale setting" errors.
unset LANG
unset LANGUAGE
LC_ALL=C
export LC_ALL
# Find the other rc files # Find the other rc files
RC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd) RC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd)