Issue #9845 has been reported by Hiroshi Shirosaki.

----------------------------------------
Backport #9845: Backport r45954
https://bugs.ruby-lang.org/issues/9845

* Author: Hiroshi Shirosaki
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
Please backport r45954 because fix of #8358 is incomplete on mingw.




-- 
https://bugs.ruby-lang.org/