fix TextIOWrapper.read() when the buffer is not readable #5628
4 files changed