]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: special-case -fdiagnostics-text-art-charset=ascii for LANG=C
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 16 Oct 2023 23:04:50 +0000 (19:04 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Mon, 16 Oct 2023 23:04:50 +0000 (19:04 -0400)
commit04013e4464020b4440aa41524a222658d7e36937
treee0442aab13ae63e98dd880407521ca48a7af162e
parentf8644b678285cf420219859a4384490d5947b731
diagnostics: special-case -fdiagnostics-text-art-charset=ascii for LANG=C

In the LWN discussion of the "ASCII" art in GCC 14
  https://lwn.net/Articles/946733/#Comments
there was some concern about the use of non-ASCII characters in the
output.

Currently -fdiagnostics-text-art-charset defaults to "emoji".
To better handle older terminals by default, this patch special-cases
LANG=C to use -fdiagnostics-text-art-charset=ascii.

gcc/ChangeLog:
* diagnostic.cc (diagnostic_initialize): When LANG=C, update
default for -fdiagnostics-text-art-charset from emoji to ascii.
* doc/invoke.texi (fdiagnostics-text-art-charset): Document the above.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/diagnostic.cc
gcc/doc/invoke.texi