Re: Solaris versus our NLS files - Mailing list pgsql-hackers

From Nico Williams
Subject Re: Solaris versus our NLS files
Date
Msg-id aTmhV01tlJLYDJCS@ubby
Whole thread Raw
In response to Re: Solaris versus our NLS files  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
On Wed, Dec 10, 2025 at 05:02:14PM +0100, Peter Eisentraut wrote:
> On 09.12.25 22:22, Tom Lane wrote:
> > At least Solaris is kind enough to let you do that with
> > symlinks [2], so that after
> > 
> >     cd $INSTALLATION/share/locale
> >     ln -s es es_ES.UTF-8
> > 
> > translation starts working for that particular value of
> > lc_messages.
> > 
> > This policy dictates making a rather large number of symlinks
> > in that directory, which we've never done TTBOMK.
> 
> How would one know all the country codes to create links for?

Does OpenIndiance really require this?  Oh, I guess it does:


https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/i18n/gettext_util.c?r=00ae5933&fi=mk_msgfile#mk_msgfile

That's a bummer.

Well, a list of country codes can probably be hardcoded into PG's build.
Or... the installation packaging could check at install time what
locales are installed and create these symlinks (but this is
unsatisfying because what if the locales in question get installed after
PG?).

Maybe PG should contribute a fix to Illumos :joy:

Nico
-- 



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: not translating backend types for ps and log_line_prefix
Next
From: Tom Lane
Date:
Subject: Re: Solaris versus our NLS files