bpo-36670: fixed encoding issue with libregrtest on win systems by LorenzMende · Pull Request #16456 · python/cpython
alternative solution to PR 15488 - fixing encoding issue with libregrtest on win systems (non english), load of default 0.0 is returned
Was not easily able to write early (instantiation) raise, instead adding of the encoding works fine.
I am unsure about the closing of the write end of the pipe (l. 62) -> tests fail if the pipe is closed, so I uncommented it.