I tried issue3080-5.patch. The whole test suite pass on Windows. It pass also on Linux with "-Wd -Werror -R 3:3:" (except #10971 which is unrelated to this issue).
I should maybe add some unit tests for non-ASCII module paths and non-ASCII module names :-)