Re: locale -a missing on Alpine Linux?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christoph Moench-Tegeder <cmt(at)burggraben(dot)net>
Cc: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: locale -a missing on Alpine Linux?
Date: 2022-11-16 19:25:28
Message-ID: 1426827.1668626728@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christoph Moench-Tegeder <cmt(at)burggraben(dot)net> writes:
> ## Peter Eisentraut (peter(dot)eisentraut(at)enterprisedb(dot)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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2022-11-16 19:52:32 Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs)
Previous Message Christoph Moench-Tegeder 2022-11-16 19:21:20 Re: locale -a missing on Alpine Linux?