pluggable-output-processor
pluggable-output-processor copied to clipboard
Pluggable Output Processor
gcc internally calls the linker, currently its messages are not handled. Example: ``` /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status...
the default output of gcc and friends is as follows ``` 4 | return e_rrno; | ^~~~~~ ``` which is nicely handled. But there is also an alternative formatting for...
Maybe there's a python module that also has things like "error" and "warning" translated? Otherwise it may be reasonable to `os.environ["LC_MESSAGES"]='C'` or similar before starting the sub-process?