Set LC_ALL and LANG when starting octoprint

Fixes errors from Click about ASCII encoding:

    RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment
    This system supports the C.UTF-8 locale which is recommended. You might be able to resolve your issue by exporting the follow
        export LC_ALL=C.UTF-8
        export LANG=C.UTF-8
This commit is contained in:
Josh Friend committed 2020-04-18 19:12:43 -04:00
1 parent aab012d530
commit fedbbdf3fb
3 files changed
+25

No files matched your search

+2
View File
@@ -4,6 +4,8 @@ After=network-online.target
Wants=network-online.target
[Service]
Environment="LC_ALL=C.UTF-8"
Environment="LANG=C.UTF-8"
Type=simple
User=pi
ExecStart=/home/pi/OctoPrint/venv/bin/octoprint