In the header of docutils/writers/latex2e/docutils.sty version 0.17 there is a comment line containing Unicode characters:
%% Copyright © 2020 Günter Milde
This lead to a build error when building the documentation for the U-Boot project:
https://source.denx.de/u-boot/u-boot/-/jobs/247572
Please, replace the Unicode characters by ASCII
%% Copyright (c) 2020 Guenter Milde
There are quite a lot of style sheets to fix:
only one .
sandbox directories are peoples playground.
interestingly this is in since at least 2009
A LaTeX stylesheet is rather unlikely the source for a problem with "make: htmldocs".
Please provide more info (link to the complete log/backtrack, settings (why not using utf8 or an 8-bit encoding?), ...
Last edit: Günter Milde 2021-04-07
This issue was also raised in the Sphinx Github. I experienced this problem using Sphinx inside Docker. @grubert mentioned on Github that this may be due to setting LC_ALL=C, which apparently is set inside containers, that defaults the line-by-line reading of files to use ASCII. One fix that I tested was enforcing the
open()commands to use the UTF-8 encoding (withencodingflag) rather than leaving it empty and implicit. Not sure if you'd want to do that though.Last edit: Varun Sharma 2021-04-07
Fixed in r8674. Thanks for the additional info.
The problem could be reproduced by running the test suite with LC_ALL=C.
Specifying the encoding when opening the LaTeX style file "docutils.sty" solved it.
It remains a riddle, why Sphinx imports the LaTeX writer when building HTML, though.
Fixed in 0.17.1. Thank you for the report.