pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nico Williams <nico@cryptonector.com>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Solaris versus our NLS files
Date: Wed, 10 Dec 2025 10:35:35 -0600
Message-ID: <aTmhV01tlJLYDJCS@ubby> (raw)
In-Reply-To: <c51789d4-cc83-46a5-b570-93a54f5dc1ea@eisentraut.org>
References: <292844.1765315339@sss.pgh.pa.us>
	<c51789d4-cc83-46a5-b570-93a54f5dc1ea@eisentraut.org>

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=00ae593...

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
-- 





view thread (25+ messages)  latest in thread

Message-ID: <aTmhV01tlJLYDJCS@ubby>
Permalink:  ../aTmhV01tlJLYDJCS@ubby/
Also on:    postgresql.org/message-id/aTmhV01tlJLYDJCS@ubby

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: nico@cryptonector.com, peter@eisentraut.org, tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org
  Subject: Re: Solaris versus our NLS files
  In-Reply-To: <aTmhV01tlJLYDJCS@ubby>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox