Skip to content

CentOS 8 and Fedora 36 images: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) #22

@bording

Description

@bording

While working on libgit2/libgit2sharp#2028, I came across a problem with the centos.stream.8 and fedora.36 images.

During the build, I was getting the following warning:

/usr/bin/sh : warning : setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

And then I ended up getting a build failure because of malformed versioning attributes.

It looks like this is the reason MSBuild is trying to set the locale and failing: dotnet/msbuild#4194

Searching around a bit more, I came across an issue that said that you could fix the problem by installing the glibc-langpack-en package and pointed to https://bugzilla.redhat.com/show_bug.cgi?id=1677927#c7 as the source of that info.

I tested that on the two images locally, and that did seem to make everything work. Any chance of getting that added to the base centos.stream.8 and fedora.36 images here? Those were the only two that seemed to be impacted.

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