.bashrc.d/02locale: force LANG=en_US.UTF-8 on xphy*s.
authorW. Trevor King <wking@tremily.us>
Fri, 12 Oct 2012 18:05:36 +0000 (14:05 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 12 Oct 2012 18:05:39 +0000 (14:05 -0400)
It had been en_US, which causes warnings like

  bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US)

on bash tab-completion.

src/.bashrc.d/02locale [new file with mode: 0644]

diff --git a/src/.bashrc.d/02locale b/src/.bashrc.d/02locale
new file mode 100644 (file)
index 0000000..90aba95
--- /dev/null
@@ -0,0 +1,6 @@
+if [[ "${OS}" = "Ubuntu" ]]; then
+       HOST="$(hostname)"
+       if [[ "${HOST:0:4}" = "xphy" ]]; then
+               export LANG="en_US.UTF-8"
+       fi
+fi