summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lolcat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lolcat.c b/lolcat.c
index 0788938..c201bbf 100644
--- a/lolcat.c
+++ b/lolcat.c
@@ -138,7 +138,7 @@ int main(int argc, char** argv)
inputs_end = inputs + 1;
}
- if (force_locale)
+ if (force_locale && !strstr(getenv("LANG"), "UTF-8"))
setlocale(LC_ALL, "C.UTF-8");
else
setlocale(LC_ALL, "");