rust/src/etc
Manish Goregaokar 8c639d3c6e Rollup merge of #22420 - posixphreak:fix-rustup-locale, r=brson
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`.

Here is what happens without the fix:
```
➜  projects  curl -s https://static.rust-lang.org/rustup.sh | sudo sh
rustup: CFG_CURL             := /usr/bin/curl (7.22.0)
rustup: CFG_TAR              := /bin/tar (1.26)
rustup: CFG_FILE             := /usr/bin/file (5.09)
rustup: CFG_SHA256SUM        := /usr/bin/sha256sum (256sum)
rustup: CFG_SHASUM           := /usr/bin/shasum (5.61)
rustup:
rustup: processing sh args
rustup:
rustup: CFG_PREFiX           :=
rustup: CFG_DATE             :=
rustup:
rustup: validating sh args
rustup:
rustup: host triple: i686-unknown-linux-gnu
rustup: Downloading https://static.rust-lang.org/dist/rust-nightly-i686-unknown-linux-gnu.tar.gz to /tmp/tmp.Wz6F1ToG5z/rust-nightly-i686-unknown-linux-gnu.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  132M  100  132M    0     0  59947      0  0:38:31  0:38:31 --:--:-- 71204
rustup: Downloading https://static.rust-lang.org/dist/rust-nightly-i686-unknown-linux-gnu.tar.gz.sha256
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   109  100   109    0     0    107      0  0:00:01  0:00:01 --:--:--   169
rustup: Verifying hash
rustup: Extracting /tmp/tmp.Wz6F1ToG5z/rust-nightly-i686-unknown-linux-gnu.tar.gz
install: looking for install programs
install:
install: found mkdir
install: found printf
install: found cut
install: found grep
install: found uname
install: found tr
install: found sed
install: found chmod
install:
install: processing /tmp/tmp.Wz6F1ToG5z/rust-nightly-i686-unknown-linux-gnu/install.sh args
install:
install: CFG_DESTDiR          :=
install: CFG_PREFiX           := /usr/local
install: CFG_LiBDiR           := /lib
install: CFG_MANDiR           := /share/man
install:
install: validating /tmp/tmp.Wz6F1ToG5z/rust-nightly-i686-unknown-linux-gnu/install.sh args
install:
install: verifying platform can run binaries
install: verifying destination is writable
mkdir: cannot create directory `': No such file or directory
install: error: can't write to destination. consider `sudo`.
rustup: error: failed to install Rust
```
Notice how `i` wasn't replaced with `I`.

Rust is installed as usual after the fix. Tested on Ubuntu x86 12.04 LTS.
I'm not exactly sure if setting LC_CTYPE is the best solution, but there's that.
2015-02-17 06:25:21 +05:30
..
mingw-fix-include Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
third-party Update license notice. 2014-09-11 09:40:20 -07:00
2014-06-rewrite-bytes-macros.py Change /bin/env to /usr/bin/env in helper python script, as it is more portable 2014-06-23 09:17:40 +10:00
adb_run_wrapper.sh Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
apple-darwin.supp platform-specific valgrind suppression 2012-02-05 09:07:23 -08:00
check-binaries.py add shebang to scripts that have execute bit set 2014-05-12 19:52:29 -07:00
check-summary.py Fix PEP8 for check-summary.py 2015-01-27 01:26:02 -08:00
cmathconsts.c Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
CONFIGS.md markdown file with links to configs 2015-02-15 14:32:48 +03:00
ctags.rust Improved the tags impl regex 2014-07-24 09:08:52 -04:00
errorck.py Clean up tidy scripts, coverage, performance 2015-02-05 14:37:16 -08:00
extract_grammar.py Fix PEP8 for extract_grammar 2015-01-27 01:26:03 -08:00
featureck.py Rollup merge of #21994 - iKevinY:featureck-fix, r=brson 2015-02-07 00:43:54 +05:30
gdb_load_rust_pretty_printers.py debuginfo: Add a rust-gdb shell script that will start GDB with Rust pretty printers enabled. 2014-12-30 17:26:13 +01:00
gdb_rust_pretty_printing.py Fix PEP8 in gdb pretty printer 2015-01-27 01:09:38 -08:00
generate-deriving-span-tests.py Deprecate in-tree rand, std::rand and #[derive(Rand)]. 2015-02-04 09:39:40 +11:00
generate-keyword-tests.py Fix PEP8 for generate-keyword-tests 2015-01-27 01:26:03 -08:00
get-snapshot.py Fix PEP8 in snapshot.py 2015-01-27 01:26:02 -08:00
htmldocck.py Fix PEP8 for htmldocck 2015-01-27 01:26:03 -08:00
indenter Port indenter to python 2015-01-16 08:49:54 -08:00
latest-unix-snaps.py Fix PEP8 for latest-unix-snaps.py 2015-01-27 01:26:03 -08:00
libc.c Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
licenseck.py Clean up tidy scripts, coverage, performance 2015-02-05 14:37:16 -08:00
lldb_batchmode.py Fix PEP8 in lldb_batchmode.py 2015-01-27 01:25:54 -08:00
lldb_rust_formatters.py Fix PEP8 in lldb_rust_formatters.py 2015-01-27 01:25:54 -08:00
local_stage0.sh openbsd support 2015-02-01 14:41:38 +01:00
make-snapshot.py add shebang to scripts that have execute bit set 2014-05-12 19:52:29 -07:00
make-win-dist.py std: Add a new env module 2015-02-01 11:08:15 -08:00
maketest.py Fix PEP8 in maketest 2015-01-27 01:26:01 -08:00
mirror-all-snapshots.py Fix PEP8 in mirror-all-snapshots 2015-01-27 01:26:03 -08:00
mklldeps.py Fix PEP8 in snapshot.py 2015-01-27 01:26:02 -08:00
regex-match-tests.py librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
rust-gdb debuginfo: Add a rust-gdb shell script that will start GDB with Rust pretty printers enabled. 2014-12-30 17:26:13 +01:00
rust-lldb rustc: Start "stabilizing" some flags 2014-12-19 11:38:24 -08:00
rustup.sh rustup: Fix for locale bug 2015-02-16 22:17:15 +02:00
snapshot.py openbsd support 2015-02-01 14:41:38 +01:00
sugarise-doc-comments.py Fix PEP8 in sugarise-doc-comments 2015-01-27 01:26:02 -08:00
tidy.py Tidy fixes 2015-02-05 14:38:56 -08:00
unicode.py Audit integer types in libunicode, libcore/(char, str) and libstd/ascii 2015-02-15 00:09:40 +03:00
x86.supp rm obsolete valgrind suppressions 2014-10-02 05:01:10 -04:00
ziggurat_tables.py std: Move rand to librand. 2014-03-12 11:31:05 +11:00