From 256d30bcafde09d866f2046211d755b8affae1d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Rathsman?= Date: Thu, 28 Jun 2018 19:02:14 +0200 Subject: [PATCH] Trying to fix #113 --- doc/index.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/index.sh b/doc/index.sh index 37382fa..5db9413 100644 --- a/doc/index.sh +++ b/doc/index.sh @@ -26,8 +26,13 @@ in_dir="$3" dest_dir=`dirname "$1"` target_dir=`echo "$dest_dir" | sed 's,\(.*\)/.*,\1,'` -export LC_ALL=C.UTF-8 #PEP 538 -export LANG=C.UTF-8 +locals=`locale -a` +for value in C.UTF-8 en_US.UTF-8 C.en_UK.UTF-8; do + if echo $locals | grep $value > /dev/null; then + export LC_ALL=C.UTF-8 + break + fi +done for k in "${@:4}"; do echo "$k"