~abompard/mailman/mailman-templates-utf8

« back to all changes in this revision

Viewing changes to src/mailman/utilities/i18n.py

  • Committer: Aurélien Bompard
  • Date: 2015-02-11 15:00:52 UTC
  • Revision ID: aurelien@bompard.org-20150211150052-u99erqha5ikzvl8n
Assume templates are UTF-8

As discussed on the mailing-list:
https://mail.python.org/pipermail/mailman-developers/2013-October/023347.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        try:
151
151
            if _trace:
152
152
                print('@@@', path, end='', file=sys.stderr)
153
 
            fp = open(path)
 
153
            fp = open(path, encoding="utf-8")
154
154
        except IOError as error:
155
155
            if error.errno == errno.ENOENT:
156
156
                if _trace: