A piece of code from #13816 which I am hereby splitting into smaller PRs.
The shellcheck executable shipped with travis’s trusty linux environment (contains shellcheck 0.3.1 in /usr/local/bin as opposed to the distros 0.3.3 in /usr/bin) segfaults when LC_ALL=C.
This makes sure that in travis, no matter from where the script is called, LC_ALL is left unset. Comment changed accordingly.