https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79423
David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic CC| |dmalcolm at gcc dot gnu.org --- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> --- It sounds like what you want is an "IDE mode" for output, which could be basically the same as LANG=C, but as a command-line flag. Am I right in thinking that you want to be able to suppress just the translation of "error" and "warning" etc, so that instead of output of the form: [with LANG=ja_JP.utf-8] /tmp/test.cc: 関数 ‘int x2()’ 内: /tmp/test.cc:3:4: エラー: some translated message here x0 x3 = x3. ^~ /tmp/test.cc:1:7: 備考: some other translated message here class x0; ^~ you get: /tmp/test.cc: In function ‘int x2()’: /tmp/test.cc:3:4: error: the same *translated* message here x0 x3 = x3. ^~ /tmp/test.cc:1:7: note: again, the message is still translated here class x0; ^~ i.e. that the content of the messages themselves should still be translated, even when in some kind of IDE mode; it's just the "error"/"warning" etc boilerplate that shouldn't be? As of gcc 7 we already have -fdiagnostics-parseable-fixits; presumably you'd want some kind of -fdiagnostics-output-format=VALUE or somesuch. Note to self: currently supported diagnostics format options for GCC: https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Message-Formatting-Options.html#Diagnostic-Message-Formatting-Options for clang: http://clang.llvm.org/docs/UsersManual.html#formatting-of-diagnostics