Fix bug: when line translation is in effect, reading a raw
authorChris Hanson <org/chris-hanson/cph>
Thu, 22 Feb 1996 19:02:25 +0000 (19:02 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 22 Feb 1996 19:02:25 +0000 (19:02 +0000)
commit1175d432173f7b6bee6a58c684184148362074cc
treebe8c90ef1bebcd796cb192e2d16ba1fb67dab901
parent6dfb5c9b163ac7f892738ffaffc9e15b5bc55731
Fix bug: when line translation is in effect, reading a raw
carriage-return would cause the end-index of an input buffer to become
zero, indicating that the input channel had reached end-of-file.  This
is a logic error in the design of input buffers; it is fixed by
defining logical end-of-file to be when input-buffer/real-end is zero,
because the latter is unaffected by line translation.
v7/src/runtime/io.scm