On 5/28/19 5:47 PM, Bruno Haible wrote:
OK, so tee.c, tr.c etc. ought to contain the equivalent of:

   if (! isatty (STDIN_FILENO))
     setmode (STDIN_FILENO, O_BINARY);
   if (! isatty (STDOUT_FILENO))
     setmode (STDOUT_FILENO, O_BINARY);

That sounds overly complicated. Can't we arrange to have something simpler, like what we have now?

  xset_binary_mode (STDIN_FILENO, O_BINARY);
  xset_binary_mode (STDOUT_FILENO, O_BINARY);

The idea is that tee.c, tr.c, etc. should not have to worry about calling isatty.


Reply via email to