Specify encoding when reading changelog

This commit is contained in:
Kovid Goyal 2021-09-24 07:25:12 +05:30
parent 7108eca442
commit 932c37d9e1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -315,7 +315,7 @@ class Resources(Command): # {{{
if self.newer(dest, [src]):
self.info('\tCreating changelog.json')
from setup.changelog import parse
with open(src) as f:
with open(src, encoding='utf-8') as f:
dump_json(parse(f.read(), parse_dates=False), dest)
def clean(self):