commit 031032d4e500b178d90e1969af0b66202633b63d Author: S Groesz Date: Mon May 25 21:58:51 2020 +0000 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/fixlocale.sh b/fixlocale.sh new file mode 100755 index 0000000..2b88428 --- /dev/null +++ b/fixlocale.sh @@ -0,0 +1,12 @@ +#!/bin/sh +if (locale 2>&1 | grep "locale: Cannot set"); then + if ! [ "$(id -u)" -eq 0 ]; then + echo "Locales is broken, but you must be root to fix" + exit 1 + fi + echo "Fixing Locales" + echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen + locale-gen + update-locale LANG=en_US.UTF-8 UTF-8 + dpkg-reconfigure --frontend=noninteractive locales +fi