mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Specify encoding when reading changelog
This commit is contained in:
parent
7108eca442
commit
932c37d9e1
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user