[Bug 19713] Some serial port communication functions behave differently in Wine and Windows.