Commit 59262774 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

msvcrt: In unbuffered text mode reading \r\n with fgetc fails.

parent 54aa6179
......@@ -438,6 +438,14 @@ static void test_fgetc( void )
ret = fgetc(tempfh);
ok(ich == ret, "Second fgetc expected %x got %x\n", ich, ret);
fclose(tempfh);
tempfh = fopen(tempf,"wt");
fputc('\n', tempfh);
fclose(tempfh);
tempfh = fopen(tempf,"wt");
setbuf(tempfh, NULL);
ret = fgetc(tempfh);
ok(ret == -1, "Unbuffered fgetc in text mode must failed on \\r\\n\n");
fclose(tempfh);
unlink(tempf);
free(tempf);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment