It will report 'unknown locale: UTF-8', when the env is UTF-8.
Default set the LC_ALL to C in the stackrc, instead. And delete
the duplicate option in stack.sh.
Closes-Bug: 1499296
Change-Id: I14121b25ac314a1a93e6dd6811e196ce2a7c0eb5
| ... | ... |
@@ -28,13 +28,6 @@ set -o xtrace |
| 28 | 28 |
# Make sure custom grep options don't get in the way |
| 29 | 29 |
unset GREP_OPTIONS |
| 30 | 30 |
|
| 31 |
-# Sanitize language settings to avoid commands bailing out |
|
| 32 |
-# with "unsupported locale setting" errors. |
|
| 33 |
-unset LANG |
|
| 34 |
-unset LANGUAGE |
|
| 35 |
-LC_ALL=C |
|
| 36 |
-export LC_ALL |
|
| 37 |
- |
|
| 38 | 31 |
# Make sure umask is sane |
| 39 | 32 |
umask 022 |
| 40 | 33 |
|
| ... | ... |
@@ -7,6 +7,13 @@ |
| 7 | 7 |
[[ -z "$_DEVSTACK_STACKRC" ]] || return 0 |
| 8 | 8 |
declare -r _DEVSTACK_STACKRC=1 |
| 9 | 9 |
|
| 10 |
+# Sanitize language settings to avoid commands bailing out |
|
| 11 |
+# with "unsupported locale setting" errors. |
|
| 12 |
+unset LANG |
|
| 13 |
+unset LANGUAGE |
|
| 14 |
+LC_ALL=C |
|
| 15 |
+export LC_ALL |
|
| 16 |
+ |
|
| 10 | 17 |
# Find the other rc files |
| 11 | 18 |
RC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd)
|
| 12 | 19 |
|