diff --git a/setup/translations.py b/setup/translations.py index 8aa8cf8b63..6bdcb46708 100644 --- a/setup/translations.py +++ b/setup/translations.py @@ -224,7 +224,7 @@ class POT(Command): # {{{ pot_header = self.pot_header() with tempfile.NamedTemporaryFile() as fl: - fl.write('\n'.join(files)) + fl.write('\n'.join(files).encode('utf-8')) fl.flush() out = tempfile.NamedTemporaryFile(suffix='.pot', delete=False) out.close()