*BSD News Article 2760


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!samsung!nighthawk.clearpoint.com!transfer!m2c!nic.umass.edu!caen!sdd.hp.com!uakari.primate.wisc.edu!ames!pasteur!cory.Berkeley.EDU!sim
From: sim@cory.Berkeley.EDU (Peng-Toh Sim)
Newsgroups: comp.unix.bsd
Subject: Re: 386BSD: Dinky little socket(?) bug -- ^V as escape character?
Summary: POSIX IEXTEN
Message-ID: <1992Jul30.113545.23558@pasteur.Berkeley.EDU>
Date: 30 Jul 92 11:35:45 GMT
References: <sand.712454840@milton> <1992Jul30.011650.5292@pasteur.Berkeley.EDU> <1992Jul30.081047.16575@news.tu-graz.ac.at>
Sender: nntp@pasteur.Berkeley.EDU (NNTP Poster)
Organization: University of California, at Berkeley
Lines: 39
Nntp-Posting-Host: cory

In article <1992Jul30.081047.16575@news.tu-graz.ac.at> chmr@fstgds01.tu-graz.ac.at (Christoph Robitschko) writes:
>In article <1992Jul30.011650.5292@pasteur.Berkeley.EDU> sim@cory.Berkeley.EDU (Peng-Toh Sim) writes:
>>In article <sand.712454840@milton> sand@milton.u.washington.edu (Derek Upham) writes:
>[complains that he has to press ^V twice to be interpreted in a screen session]
[bunch of stuff I wrote deleted.]
>>Can somebody who has access to the actual POSIX.1 document comment
>>on this please?
>>
>>PT
>>sim@cory.berkeley.edu
>>
>From "Portable Operating System Interface (POSIX) Part 1: System Application
>Program Interface (API) [C Language]" ("IEEE Std 1003.1 - 1990"), Chapter
>7.1.2.4:
>
># If IEXTEN is set,implementation-defined functions shall be recognized from the
># input data. It is implementation defined how IEXTEN being set interacts with
># ICANON, ISIG, IXON, or IXOFF. If IEXTEN is not set, then implementation-
># defined functions shall not be recognized, and the corresponding input
># characters shall be processed as described for ICANON, ISIG, IXON, or IXOFF.

Ha Ha, what an ambiguous standard!
To get the "correct" behaviour, we can fix 386bsd or screen etc. or both!!!
I think 386bsd should be fixed such that when ICANON is not set, IEXTEN
functions are ignored.  This still follows the above definition and yet 
will work well in practice because other POSIX programs that uses RAW mode
will "forget" to turn off IEXTEN anyway.

PT
sim@cory.berkeley.edu

>
>Typing errors are my own intellectual property 8->
>
>							Christoph
>-- 
>------------------------------------------------------------------------
>Christoph M. Robitschko  | "the only man who got his work done by Friday
>chmr@edvz.tu-graz.ac.at  |             was Robinson Crusoe."