Issue #22977: Fixed formatting Windows error messages on Wine.
Patch by Martin Panter.