initially reported by Bennett Todd. XXX Create testcase. Fix in stable branch. Rev: src/read_line.c:1.32