Re: Windows question: when is LC_MESSAGES defined? - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Windows question: when is LC_MESSAGES defined?
Date
Msg-id CA+hUKGKXWG5_cnYGcu=fh+=zdZXTKNbi0fp6r2XDvhgz4Cqh0A@mail.gmail.com
Whole thread Raw
In response to Windows question: when is LC_MESSAGES defined?  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Windows question: when is LC_MESSAGES defined?
List pgsql-hackers
On Thu, Jul 10, 2025 at 5:32 AM Jeff Davis <pgsql@j-davis.com> wrote:
> I was trying to exercise the function IsoLocaleName(), which is
> surrounded by:
>
>    #if defined(WIN32) && defined(LC_MESSAGES)
>
> but, at least in CI, that combination never seems to be true, which
> surprised me. What platforms exercise this code path?

.cirrus.tasks.yml says:

   # disable -Dnls as the number of files it creates cause a noticable
slowdown...

   configure_script: |
    %BASH% -c "meson setup -Ddebug=true -Doptimization=g
-Dcassert=true -Dinjection_points=true -Db_pch=true -Dnls=disabled
-DTAR=%TAR% build"

If you turn that on then the next problem to solve is:

[03:28:24.318] Program msgfmt found: NO

It gets past that and enables NLS and compiles that code in the
optional MinGW build (assuming you enable it in meson).



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Fix comment in btree_gist--1.8--1.9.sql
Next
From: jian he
Date:
Subject: Re: support create index on virtual generated column.