Include en_US.UTF-8 locale in daemon startup (#1883)

Fixes #1881.
This commit is contained in:
Hilko 2020-12-20 01:11:58 +01:00 committed by GitHub
parent 8664afa997
commit 3422cc61ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -90,6 +90,12 @@ rm -f /tmp/bootstrap.zip
# running after a reboot. # running after a reboot.
cat > $inst_dir/start <<EOF; cat > $inst_dir/start <<EOF;
#!/bin/bash #!/bin/bash
# Set character encoding flags to ensure that any non-ASCII don't cause problems.
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_TYPE=en_US.UTF-8
source $venv/bin/activate source $venv/bin/activate
exec python `pwd`/management/daemon.py exec python `pwd`/management/daemon.py
EOF EOF