diff options
| author | posixphreak <posixphreak@gmail.com> | 2015-02-16 22:17:15 +0200 |
|---|---|---|
| committer | posixphreak <posixphreak@gmail.com> | 2015-02-16 22:17:15 +0200 |
| commit | c24f35389d5c72fb9efc53c5933d327ef7d15bff (patch) | |
| tree | 5d25bfb8a0353e4e163819616fee5f1bc0707a45 /src/etc | |
| parent | e4e7aa28566d062514a7a1f5534d76b9d82f524a (diff) | |
| download | rust-c24f35389d5c72fb9efc53c5933d327ef7d15bff.tar.gz rust-c24f35389d5c72fb9efc53c5933d327ef7d15bff.zip | |
rustup: Fix for locale bug
Since `tr` converts lowercase to uppercase according to system locale using `LC_CTYPE` environment variable; on some locales, rustup.sh fails to use correct variables names, thus deletes temporarily downloaded files and gives a meaningless error as shown below. This a simple fix which explictly sets `LC_CTYPE` as `C`.
Diffstat (limited to 'src/etc')
| -rwxr-xr-x | src/etc/rustup.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/rustup.sh b/src/etc/rustup.sh index 07e832d317a..d4f1071c724 100755 --- a/src/etc/rustup.sh +++ b/src/etc/rustup.sh @@ -241,6 +241,9 @@ create_tmp_dir() { echo $TMP_DIR } +# Make `tr` locale independent +LC_CTYPE=C + probe_need CFG_CURL curl probe_need CFG_TAR tar probe_need CFG_FILE file |
