Skip to content

Unable to run tests from 1.9.13 with auto-detected C.UTF-8 locale name #241

@foutrelis

Description

@foutrelis

In Arch Linux build chroots locale -a returns:

C
C.UTF-8
C.utf8
POSIX
de_DE.utf8
en_US.utf8

Looking at 5683fc6 I can see how we end up with:

l='C.UTF-8  <-- note the newline
C.utf8'

Running the tests results in errors like the following:

/bin/sh: line 4: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8
C.utf8): No such file or directory
fuzz_sudo_conf: verifying corpus
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8
C.utf8)
/bin/sh: line 4: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8
C.utf8): No such file or directory
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8
C.utf8)

Disclaimer: I am not sure why we have two names for the C.UTF-8 locale inside build chroots. On my regular Arch installations I don't see the C.utf8 one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions