14fb35fa4f
use utf-8 throughout htmldocck This commit improves compatibility with Python 3, which already uses Unicode throughout. It also fixes a subtle incompatibility stemming from the use of `entitydefs`, which contains replacement text _encoded in latin-1_ for HTML entities. When using Python 3, this would cause `0xa0` to be incorrectly added to the element tree. This meant that there was a rustdoc test that would pass under Python 2 but fail under Python 3, due to an incorrect regex match against the non-breaking space character. This commit triggers that failure in both versions, and also fixes it. |
||
---|---|---|
.. | ||
installer | ||
natvis | ||
platform-intrinsics | ||
test-float-parse | ||
third-party | ||
cat-and-grep.sh | ||
CONFIGS.md | ||
ctags.rust | ||
debugger_pretty_printers_common.py | ||
dec2flt_table.py | ||
gdb_load_rust_pretty_printers.py | ||
gdb_rust_pretty_printing.py | ||
generate-deriving-span-tests.py | ||
generate-keyword-tests.py | ||
htmldocck.py | ||
indenter | ||
lldb_batchmode.py | ||
lldb_rust_formatters.py | ||
rust-gdb | ||
rust-gdbgui | ||
rust-lldb | ||
rust-windbg.cmd | ||
wasm32-shim.js |