From: Carl Hetherington Date: Sun, 5 May 2019 19:20:42 +0000 (+0100) Subject: Fix xgettext call with UTF8 source code. X-Git-Tag: v2.14.2~6 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=e4dc22a791e3607dc611762eb589c67340cc919e Fix xgettext call with UTF8 source code. --- diff --git a/i18n.py b/i18n.py index 935bc3461..a3589ff82 100644 --- a/i18n.py +++ b/i18n.py @@ -20,7 +20,7 @@ def pot(dir, sources, name): except: pass - command('xgettext -d %s -s --keyword=_ --keyword=S_ --add-comments=/ -p %s -o %s.pot %s' % (name, d, name, s)) + command('xgettext --from-code=UTF-8 -d %s -s --keyword=_ --keyword=S_ --add-comments=/ -p %s -o %s.pot %s' % (name, d, name, s)) def pot_merge(dir, name): for f in glob.glob(os.path.join(os.getcwd(), dir, 'po', '*.po')):