diff options
Diffstat (limited to 'sphinx/builders/changes.py')
-rw-r--r-- | sphinx/builders/changes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/changes.py b/sphinx/builders/changes.py index cf68e5dfa..5bf6ad6bb 100644 --- a/sphinx/builders/changes.py +++ b/sphinx/builders/changes.py @@ -135,7 +135,7 @@ class ChangesBuilder(Builder): logger.info(bold(__('copying source files...'))) for docname in self.env.all_docs: - with open(self.env.doc2path(docname), 'r', # type: ignore + with open(self.env.doc2path(docname), # type: ignore encoding=self.env.config.source_encoding) as f: try: lines = f.readlines() |