Skip to content

Utilities/Sphinx: Backport encoding fix !8402 to 3.26

When the encoding is not specified, open() may choose an encoding based on the locale in use. That encoding may have no relationship to the encoding of the file being opened. Use the locale from the document settings instead, which should better match the file's encoding.

Fixes: #24679 (closed)

Edited by Brad King

Merge request reports