Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* I observed strange output from col when the input file was large * Finally I discovered the issue is related to code that runs when the buffer fills up * The input loop adds lines to a buffer which are printed in a subsequent loop; however, the buffer code triggers early printing within the input loop * I could reproduce error earlier by setting a smaller buffer size with -l: "perl col -l 5 ching" * The pod manual says -l buffers at least n lines of input * I propose ignoring -l and buffering the whole file, this at least doesn't result in a runtime error * Correct buffer management code could be investigated later
- Loading branch information