+# 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"
+