From 7af6f81551bfd44ac2cbe962c864b216fd6e7209 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 27 May 2019 11:49:02 +0200 Subject: [PATCH] this is fine --- home/-shrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/-shrc b/home/-shrc index d627e06..e9592ca 100644 --- a/home/-shrc +++ b/home/-shrc @@ -45,7 +45,11 @@ unset PREFIX CC CPP CXX LD CFLAGS CPPFLAGS CXXFLAGS LDFLAGS unset AR RANLIB RC WINDRES OBJDUMP OBJCOPY COMPILER_PATH unset LD_LIBRARY_PATH -[ "$LANG" != "en_US.UTF-8" ] && [ "$LANG" != "en_CA.UTF-8" ] && echo "Warning: LANG is $LANG" +if [ "$LANG" != "en_US.UTF-8" ] && [ "$LANG" != "en_CA.UTF-8" ]; then + if [ -z "$MSYSTEM" ] || [ "$LANG" != "C.UTF-8" ]; then + echo -E "Warning: LANG is $LANG" >&2 + fi +fi # PuTTY over serial [[ "$TERM" == vt102 ]] && export TERM="xterm"