Re: Solaris versus our NLS files

Поиск
Список
Период
Сортировка
От Nico Williams
Тема Re: Solaris versus our NLS files
Дата
Msg-id aTmhV01tlJLYDJCS@ubby
обсуждение исходный текст
Ответ на Re: Solaris versus our NLS files  (Peter Eisentraut <peter@eisentraut.org>)
Список 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 по дате отправления: