This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/282] New: POSIX.1-2001:popen streams are byte-oriented
- From: "a dot josey at opengroup dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Jul 2004 11:41:59 -0000
- Subject: [Bug libc/282] New: POSIX.1-2001:popen streams are byte-oriented
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
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.