[gnu.bash.bug] rl_getc on SYSV

jjc@UUNET.UU.NET (James Clark) (06/14/89)

The version of rl_getc that bash 0.99 provides for SYSV won't work for
meta characters on machines which have a signed char. The result is
that on such machines bash core dumps whenever a meta character is
used.

*** readline.c~ Tue Jun 13 14:18:20 1989
--- readline.c  Wed Jun 14 11:17:32 1989
***************
*** 4390,4396 ****
      {
        result = read (fileno (stream), &c, sizeof (char));
        if (result == sizeof (char))
!       return (c);

        if (errno != EINTR)
        return (EOF);
--- 4390,4396 ----
      {
        result = read (fileno (stream), &c, sizeof (char));
        if (result == sizeof (char))
!       return ((unsigned char)c);

        if (errno != EINTR)
        return (EOF);

James Clark
jjc@jclark.uucp