C++ Logo


Advanced search

Subject: Re: Agenda for the 2021-04-28 SG16 telecon
From: Corentin Jabot (corentinjabot_at_[hidden])
Date: 2021-04-27 06:10:57

On Tue, Apr 27, 2021 at 12:57 PM Jean-Marc Bourguet via SG16 <
sg16_at_[hidden]> wrote:

> I'm probably too much a Unix guy, but having
> prog
> and
> prog | more
> or
> prog > file; cat file
> displaying different things is not something that meets my expectations.
> The difference in buffering behaviour is already hard enough to explain.
> Piping to more is far too common for it behaving differently than direct
> output.
> Yours,
Either way you are printing out the same content.
Except in one case it is _rendered_ correctly and in the other it might not.
This will also not affect linux, it is addressing a very windows-specific
problem for which the encoding the console assumes by default is not the
execution encoding.
This is explained in more details in Victor's paper

SG16 list run by sg16-owner@lists.isocpp.org