[Python-bugs-list] readline on QNX (PR#192)

davidv@elisra.com davidv@elisra.com
Thu, 27 Jan 2000 13:31:19 -0500 (EST)


Full_Name: David Vainapel
Version: 1.52
OS: Qnx
Submission from: pop09-1-ras1-p215.barak.net.il (212.150.8.215)


This is not a bug.
I have compiled Python 1.52 with Watcom on QNX. The Linux readline doesn't
work good with QNX. This  simple patch for /Parser/myreadline.c
replaces readline with QNX input_line function.

------------------------------------------------------------
60,68d59
<
< #ifdef __QNX__
<   p = input_line( fp, buf, len );
<   if( p ) {
<    int n = strlen(p);
<    p[n] = '\n';
<    p[n+1] = 0;
<   }
< #else
70d60
< #endif
-------------------------------------------------------------