Possible Bug About Read?
frank at g-n-u.de
Sun Apr 22 05:48:10 CEST 2001
George L. Yang wrote:
> I find the Read function can not read new line correctly. When I input
> a new line, Read tells me what I input is 2 spaces.
> I am not sure whether it is a bug or is there any way to fix it
First of all, what you should expect is a space rather than a
newline. That's how text files work. (You can test EOLn to
differentiate it from a real space.) If you want to read characters
directly, maybe a `file of Char' is better suited than `Text'.
But, of course, 2 spaces is wrong. I'm fixing it (will be uploaded
soon, gpc-20010422). Thanks for the report (george1.pas).
Frank Heckenbach, frank at g-n-u.de, http://fjf.gnu.de/
GPC To-Do list, latest features, fixed bugs:
More information about the Gpc