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

noreply@sourceforge.net noreply@sourceforge.net
Thu, 7 Sep 2000 15:04:30 -0700


Bug #110831, was updated on 2000-Aug-01 14:12
Here is a current snapshot of the bug.

Project: Python
Category: None
Status: Open
Resolution: None
Bug Group: Feature Request
Priority: 5
Summary: readline on QNX (PR#192)

Details: Jitterbug-Id: 192
Submitted-By: davidv@elisra.com
Date: Thu, 27 Jan 2000 13:31:16 -0500 (EST)
Version: 1.52
OS: Qnx


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
-------------------------------------------------------------


====================================================================
Audit trail:
Mon Feb 07 12:34:32 2000	guido	sent reply 1
Mon Feb 07 12:34:49 2000	guido	changed notes
Mon Feb 07 12:34:49 2000	guido	moved from incoming to request

Follow-Ups:

Date: 2000-Aug-01 14:13
By: none

Comment:
From: Guido van Rossum <bugs-py@python.org>
Subject: Re: readline on QNX (PR#192)
Date: Mon Feb  7 12:34:32 2000

> 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
> -------------------------------------------------------------

David, please see www.python.org/patches for instructions on how to send
patches.  The Bugs List is not the right place, sorry!

--Guido van Rossum

-------------------------------------------------------

Date: 2000-Aug-01 14:13
By: none

Comment:
Should go to patches@python.org.

-------------------------------------------------------

Date: 2000-Sep-07 15:04
By: jhylton

Comment:
Please do triage on this bug.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110831&group_id=5470