X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/002272c9e61ac20e9f8404ae2fe67bde98cb3849..2a2b84aa6a83ccb20820723f1c93ef3f762eb4d3:/tests/dtest.py diff --git a/tests/dtest.py b/tests/dtest.py index ffb63cb..0cb968a 100644 --- a/tests/dtest.py +++ b/tests/dtest.py @@ -54,6 +54,13 @@ ospath.insert(0, os.path.join(top_builddir, "clients")) ospath.insert(0, os.path.join(top_builddir, "tests")) os.environ["PATH"] = os.pathsep.join(ospath) +# Some of our track names contain non-ASCII characters, and the server will +# be sad if it can't convert them according to the current locale. Make sure +# we have something plausible. +locale = os.environ.get("LANG") +if locale is None or locale == "C" or locale == "POSIX": + os.environ["LANG"] = "C.UTF-8" + # Parse the makefile in the current directory to identify the source directory top_srcdir = None for l in file("Makefile"):