Thread overview
[Issue 20822] when building dmd, control characters for the console are included even when the host DC is piped
May 12, 2020
Basile-z
May 12, 2020
Basile-z
May 13, 2020
Basile-z
May 12, 2020
https://issues.dlang.org/show_bug.cgi?id=20822

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|control characters for the  |when building dmd, control
                   |console are included even   |characters for the console
                   |when dmd is piped           |are included even when the
                   |                            |host DC is piped

--
May 12, 2020
https://issues.dlang.org/show_bug.cgi?id=20822

--- Comment #1 from Basile-z <b2.temp@gmx.com> ---
confirmed even when forcing no color, e.g

  $ export DFLAGS="-color=off" && ./build.d > a.out

then the error message contains control characters.

--
May 13, 2020
https://issues.dlang.org/show_bug.cgi?id=20822

--- Comment #2 from Basile-z <b2.temp@gmx.com> ---
I've found a dubtful assulmption in build.d

https://github.com/dlang/dmd/blob/25e9247535649606e312f9e623be7a68b8d46678/src/build.d#L151-L157

"Since we're ultimately outputting to a TTY,"

                      ??????

"auto" should be the default. "auto" detects if the stuff is piped or not.

--
December 13
https://issues.dlang.org/show_bug.cgi?id=20822

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17956

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--