[Bug libc/282] New: POSIX.1-2001:popen streams are byte-oriented
a dot josey at opengroup dot org
sourceware-bugzilla@sources.redhat.com
Fri Jul 23 11:42:00 GMT 2004
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.
More information about the Glibc-bugs
mailing list