Re: getc() ?? bug
On Mon, 20 Nov 2000 14:00:05 +1100, Derek Parnell <derekp at SOLACE.COM.AU>
wrote:
>So blame the DOS designers. The interpreter is not wrong in this case. How
>can it know that for this specific text file, the ASCII-26 is not to be
>interpreted as EOF, but on others it is? And just because DOS has a glyph
>assigned to ASCII-26, does mean that it is a "printable" character
according
>to ASCII or ANSI.
>
>Anyhow, the Euphoria behaviour is already documented. Here is an extract
>from the open() documentation.
I still disagree.
I should be able to open ANY disk file in ANY mode and read it and it
should NEVER return -1 or EOF UNTIL it reaches the very end of the
file and at no other time NO MATTER what text it contains look at
the DOS interrupts the AX register indicates when it reachs an EOF.
The context of the file should have nothing to do with it. The
reason that euphoria is wrong is because it is trying to use the
same function to get input from the keyboard.
Bernie
|
Not Categorized, Please Help
|
|