Re: locale -a missing on Alpine Linux? - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: locale -a missing on Alpine Linux?
Date
Msg-id 83261a6f-24c7-bcaf-258a-88368ae25a4c@dunslane.net
Whole thread Raw
In response to Re: locale -a missing on Alpine Linux?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: locale -a missing on Alpine Linux?
List pgsql-hackers
On 2022-11-16 We 14:25, Tom Lane wrote:
> Christoph Moench-Tegeder <cmt@burggraben.net> writes:
>> ## Peter Eisentraut (peter.eisentraut@enterprisedb.com):
>>> First of all, is this a standard installation of this OS, or is perhaps 
>>> something incomplete, broken, or unusual about the current OS installation?
>> Alpine uses musl libc, on which you need package musl-locales to get
>> a /usr/bin/locale.
>> https://pkgs.alpinelinux.org/package/edge/community/x86/musl-locales
> Ah.  And that also shows that if you didn't install that package,
> you don't have any locales either, except presumably C/POSIX.
>
> So probably we should treat failure of the locale command as okay
> and just press on with no non-built-in locales.


malleefowl is a docker instance (mostly docker images is what Alpine is
used for). It would be extremely easy to recreate the image and add in
musl-locales, but maybe we should just leave it as it is to test the
case where the command isn't available.


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: HOT chain validation in verify_heapam()
Next
From: Andrew Dunstan
Date:
Subject: Re: Supporting TAP tests with MSVC and Windows