Re: Fw: Patch to 'tr' utility

[email protected] (Bob Proulx)
Newsgroups gmane.comp.gnu.textutils.bugs
Message-ID <[email protected]>
> >> +  /* Do not buffer console output. */
> >> +  if (isatty((int) stdout)) SETVBUF (stdout, NULL, _IONBF, 0);

Doesn't libc do exactly this already?  Why does it need to be done
twice, here and in libc too?

Also, that "(int)stdout" cast to 'int' makes me nervous.  That
cast shouldn't be there.

Bob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.