https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105959
--- Comment #6 from Hans-Peter Nilsson <hp at gcc dot gnu.org> --- (In reply to David Malcolm from comment #4) > DejaGnu version 1.6.1 > Expect version 5.45.4 > Tcl version 8.6 Close enough to say that's probably *not* it, also see below... > What does the generated > testsuite/gcc/diagnostic-format-sarif-file-4.c.sarif > file look like? I'm attaching mine for reference. Besides file-paths and version strings, it's the same; attached for reference. Perhaps your language environment is different? I always build with "LC_ALL=C". (everybody speaks the C language - it must be right! ;) Indeed, if I run the test-suite prefixing the "make" invocation with 'env "LC_ALL=en_US.UTF-8"' or 'env "LC_ALL=C.UTF-8"' the test passes, so I think we found the cause; an assumption that the environment speaks UTF-8. My environment is ISO-8859-1, and I guess similarly the reporter's and John Anglin's tester environments. I'm also guessing you'll see the reflection; the error I see, if you run the test-suite prefixing your make invocation with 'env "LC_ALL=C" "LANG=C"'. It unfortunately makes no difference to add "setenv LC_ALL C" to dg.exp (it's already set via gcc-dg.exp), so this needs some other tweak to force the environment to the preferred setting for the test.