Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite

Alan Cox
2009-09-04T21:12:34Z

> After writing the above, the voices in my head started clamoring about
> this "space allocated" vs "bytes buffered" thing, which I was obviously
> aware of, but hadn't thought about as an issue.
>
> And you know what? The thing about "space allocated" vs "bytes buffered"
> is that writing _one_ byte (the '\r') can cause a lot more than one byte
> to be allocated for a buffer (we do minimum 256-byte buffers)

Doh yes thats an utterly dumb bug on my part - we do have to work on
chars.

100% agree with the diagnosis