From 932c37d9e1a71f9af507079423d13669cca581b8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 Sep 2021 07:25:12 +0530 Subject: [PATCH] Specify encoding when reading changelog --- setup/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/resources.py b/setup/resources.py index 28844fa02b..bbc73b185e 100644 --- a/setup/resources.py +++ b/setup/resources.py @@ -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):