Closed Bug 1535831 Opened 7 years ago Closed 7 years ago

Mach output on Windows contains escape sequences and is hard to read

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1417003

People

(Reporter: jorgk-bmo, Unassigned)

Details

mach support on Windows is rather poor anyway, what comes out in nice colours on Linux, comes out as funny escape sequences in the DOS/sh window:

0:11.16 [0m[0m[1m[36m Blocking[0m waiting for file lock on build directory
0:11.31 [0m[0m[1m[32m Finished[0m dev [optimized + debuginfo] target(s) in 2.13s
0:11.31 [0m[0m[1m[32m Finished[0m dev [optimized + debuginfo] target(s) in 2.13s
0:11.36 [0m[0m[1m[32m Finished[0m dev [optimized + debuginfo] target(s) in 2.18s
0:12.27 [0m[0m[1m[32m Finished[0m dev [optimized + debuginfo] target(s) in 3.07s

(you can't even see in the posted comment that there are non-printable characters in fron of each [0m, maybe a ESC.)

The rust compiler is another "beauty":

1:18.79 [0m[0m[1m[32m Compiling[0m binast v0.1.1 (C:\mozilla-source\comm-central\js\src\frontend\binast)
1:18.83 [0m[0m[1m[32m Compiling[0m geckodriver v0.24.0 (C:\mozilla-source\comm-central\testing\geckodriver)

Should that be filed separately?

In fact, this is just a dupe.

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE

BTW, those escape sequences already showed up incorrectly long before the arrival of rust/cargo, like when I stated in 2015. But I guess that bug will fix colours in general one day.

Comment 0 only contains lines that come from cargo. For the rest, it has always worked on my machine in the shell that mozillabuild's start-shell.bat starts by default.

OK, I stand corrected. Let me rephrase then: Even in 2015, Linux was colourful and Windows was B/W. Linux even has/had some nice tier(?) and percentage information at the bottom. Well, I haven't compiled on Linux in years, so my memory is a little faint.

You need to log in before you can comment on or make changes to this bug.