Enforce UTF-8 encoding for xgettext

This commit is contained in:
Florian Festi 2022-05-14 16:10:30 +02:00
parent ece304bf1f
commit 88ea5f8385
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class CustomBuildExtCommand(build_py):
os.path.join("scripts", "boxes2pot"),
"po/boxes.py.pot"))
os.system("%s %s" % (
"xgettext -L Python -j -o po/boxes.py.pot",
"xgettext -L Python -j --from-code=utf-8 -o po/boxes.py.pot",
"boxes/*.py scripts/boxesserver scripts/boxes"))
def generate_mo_files(self):