Displaying 1 result from an estimated 1 matches for "buffer_getc".
Did you mean:
buffer_get
1999 Mar 14
2
y with diaeresis (PR#143)
...-----------------------------------------------------------------
i.e, 'y diaeresis' seems interpreted as an EOF.
I don't know where is the solution but problem seems due to the
conversions from int to char (made implicitly by R_ReadConsole)
and then back to int made in src/main/gram.y(buffer_getc). Result
is that the 'if (c==EOF)' test in that function is true when c='y diaeresis'.
Indeed:
----------------------------------------------------------------------------
[~/tmp]% cat a.c
#include <stdio.h>
int main(int argc,char **argv) {
int i,j;
char c;
while ((i=f...