Uwe Bonnes : msvcrt: Handle CR at buffer boundary and test case.