refs: https://github.com/mintty/mintty/issues/1189 refs: https://github.com/mintty/mintty/issues/1171