bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8961: stdbuf has no effect on some programs


From: Eric Blake
Subject: bug#8961: stdbuf has no effect on some programs
Date: Tue, 05 Jul 2011 09:41:35 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 07/04/2011 03:08 AM, Pádraig Brady wrote:
> But I notice that sed no longer supports `setbuf -i0`.
> This is because of 3a8e165a which discards the
> original stdin and instead fdopens() a new one
> to support reading in binary mode on windos.
> http://git.sv.gnu.org/gitweb/?p=sed.git;a=commit;h=3a8e165a

This seems to point to the fact that using freopen() to force binary
mode on stdin is the wrong approach, and that we may be better served by
using lower-level idioms that change the binary mode of the underlying
file descriptor without also altering stdin with unintended side-effects.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]