On Thu, 2024-10-31 at 23:18 +0000, Joseph Myers wrote: > On Thu, 31 Oct 2024, David Malcolm wrote: > > > That said, I think setting LANG=C when running selftests is probably > > the best solution. How does the attached (untested) patch look? > > LC_ALL takes precedence over LANG. OK with LC_ALL instead of or alongside > LANG (assuming that passes testing).
I agree, for example LANG=C LC_MESSAGES=zh_CN.UTF-8 LC_CTYPE=C.UTF-8 gcc still outputs Chinese messages. LC_ALL=C should be OK (I used LC_ALL=C make -j8 for building GCC yesterday to work around this issue). > (Note: some platforms may use UTF-8 for the C locale; there's support in > the testsuite for using C.ASCII instead on Cygwin for that reason. This > matters if you're testing the use of ASCII versus Unicode quotes in > diagnostics.) -- Xi Ruoyao <xry...@xry111.site> School of Aerospace Science and Technology, Xidian University