From c24f35389d5c72fb9efc53c5933d327ef7d15bff Mon Sep 17 00:00:00 2001 From: posixphreak Date: Mon, 16 Feb 2015 22:17:15 +0200 Subject: [PATCH] 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`. --- src/etc/rustup.sh | 3 +++ 1 file changed, 3 insertions(+) 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