From ec38740854617ffcdc0a1f8cd880c155b84ca826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Socho=C5=84?= Date: Mon, 26 Mar 2018 01:17:39 +0200 Subject: [PATCH] Ensure tox gets proper language settings. If LC_ALL is not passed then the interpreter will assume it is C (which causes the interpreter to use ASCII). This, in turn, causes the unicode in various places to trigger a UnicodeDecodeError exception. CI workers have that locale set by default. Some people do not have that locale setting set properly. --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index d0863eb..76cbe8a 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,7 @@ setenv = GIT_COMMITTER_NAME = "test" GIT_AUTHOR_EMAIL = "test@example.com" GIT_COMMITTER_EMAIL = "test@example.com" + LC_ALL=en_US.UTF-8 commands = coverage erase coverage run -m pytest {posargs:tests}