https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120251

James K. Lowden <jklowden at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jklowden at gcc dot gnu.org

--- Comment #2 from James K. Lowden <jklowden at gcc dot gnu.org> ---
These tests have output that depends on locale.  That is as it should be: "Hur
mår du?" is represented using different bytes in different encodings, and the
best indication we have of the "right" encoding is the current locale.  

What to do about the test?  Since the test output is in UTF-8, my preference
would be to ensure the test runs with LANG=C.UTF-8 in the environment.  We
could also skip the test if the current environment isn't UTF-8.  For tests
that aren't specifically about DISPLAY, we could also change the test not to
depend on the output of a DISPLAY statement.

I haven't tried to figure out how to set the locale for a test.  I thought I'd
start by asking what is wanted.

Reply via email to