about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAndy Russell <arussell123@gmail.com>2019-01-05 14:17:51 -0500
committerAndy Russell <arussell123@gmail.com>2019-01-06 01:27:33 -0500
commit6fefcee73a5dfee20281396e0f1418ceda81776b (patch)
tree67f89e609c06fbb15c0c68271cb550be1843aabf /src/test/incremental/thinlto
parent68614265d312fc2cbe8a696f7dabb9416eb6f221 (diff)
downloadrust-6fefcee73a5dfee20281396e0f1418ceda81776b.tar.gz
rust-6fefcee73a5dfee20281396e0f1418ceda81776b.zip
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.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions