public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/282] New: POSIX.1-2001:popen streams are byte-oriented
@ 2004-07-23 11:42 a dot josey at opengroup dot org
  2004-07-29 20:26 ` [Bug libc/282] " jakub at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: a dot josey at opengroup dot org @ 2004-07-23 11:42 UTC (permalink / raw)
  To: glibc-bugs

POSIX.1-2001 states that pipe streams created by popen() are byte-oriented
(1003.1 2004 edition p 874 l 28526)
Yet running a program such as the following extract shows they are not after
a call to popen.

 if ((fp = popen(cmd, "r")) == NULL)
        {
            /* popen failed */ ;
        }
                                                               
  
  if ((ret = fwide(fp, 0)) >= 0)
       {
         printf ("fail\n");
        /* fwide is expected to return < 0 to denote that
            the stream is byte oriented but is returning 0
            to denote no orientation */      
       }

-- 
           Summary: POSIX.1-2001:popen streams are byte-oriented
           Product: glibc
           Version: 2.3.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: a dot josey at opengroup dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=282

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/282] POSIX.1-2001:popen streams are byte-oriented
  2004-07-23 11:42 [Bug libc/282] New: POSIX.1-2001:popen streams are byte-oriented a dot josey at opengroup dot org
@ 2004-07-29 20:26 ` jakub at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: jakub at redhat dot com @ 2004-07-29 20:26 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2004-07-29 20:26 -------
Should be fixed in CVS.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sources.redhat.com/bugzilla/show_bug.cgi?id=282

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-29 20:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-23 11:42 [Bug libc/282] New: POSIX.1-2001:popen streams are byte-oriented a dot josey at opengroup dot org
2004-07-29 20:26 ` [Bug libc/282] " jakub at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).