From 7a7211fae97b3fe51a10a4c2cdca224023167d94 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 17 Jan 2019 17:25:56 +0100 Subject: [PATCH] Generate en_US.UTF-8 during install --- install_yunohost | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install_yunohost b/install_yunohost index 898f66b..315fa60 100755 --- a/install_yunohost +++ b/install_yunohost @@ -432,6 +432,12 @@ function restart_services() { } function fix_locales() { + # This function tries to fix the whole locale and perl mess about missing locale files + + # Generate at least en_US.UTF-8 + sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen + + # If no /etc/environment exists, default to en_US.UTF-8 [ "$(grep LC_ALL /etc/environment)" ] || echo 'LC_ALL="en_US.UTF-8"' >> /etc/environment source /etc/environment export LC_ALL