This test has been failing for a while on D8 for the master branch.. I've still not managed to get to the bottom of the failures.. I think it's something to do with dependencies and utf8 handling. Any help would be appreciated :)
See bug 21028, it's related to the path of history.txt (not encoding related).
This has been (magically?) fixed.
My bad, I thought I'd marked this as a duplicated at the time I fixed it: It turns out it was bug 23655 *** This bug has been marked as a duplicate of bug 23655 ***