Re: Windows question: when is LC_MESSAGES defined?

From: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Jeff Davis <pgsql(at)j-davis(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Windows question: when is LC_MESSAGES defined?
Date: 2025-07-17 18:12:03
Message-ID: CAN55FZ324WPjV4GRrTNO0egOgVJErLHNr_51yr9G6LBMeQ0tXg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Thu, 17 Jul 2025 at 11:19, Dave Page <dpage(at)pgadmin(dot)org> wrote:
>
> On Thu, 17 Jul 2025 at 09:01, Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com> wrote:
>>
>> x64:
>>
>> * I downloaded Dave Page's Windows gettext artifact from [2]. I am
>> able to configure Postgres with nls being enabled but then compilation
>> failed with:
>> ```
>> [349/2500] Building translation
>> src/interfaces/libpq/po/cs/LC_MESSAGES/libpq5-19-cs.mo
>> FAILED: src/interfaces/libpq/po/cs/LC_MESSAGES/libpq5-19.mo
>> "C:\Users\byavuz81\Downloads\gettext-0.25-win64\bin\msgfmt.EXE" "-o"
>> "src/interfaces/libpq/po/cs/LC_MESSAGES/libpq5-19.mo"
>> "../src/interfaces/libpq/po/cs.po"
>> C:\Users\byavuz81\Downloads\gettext-0.25-win64\bin\msgfmt.EXE: iconv
>> failure: No error
>> [354/2500] Compiling C object
>> src/interfaces/libpq/libpq.dll.p/fe-auth-oauth.c.obj
>
>
> That build of gettext seems to work fine with the PostgreSQL builds in the winpgbuild repo, so there must be something different in your environment. I do remember spending some time trying to resolve the "iconv failure: No error" message myself though, but unfortunately I was just messing around in the GitHub editor trying to get it to work for giggles at the time with a bunch of trial and error builds with no useful commit messages so couldn't tell you what the issue was now :-/
>
> I do also recall that gettext was the component that took me by far the longest to get working on that project.

Thanks for the heads-up! Unfortunately, I tried that on a VM which I
have since deleted, so I no longer have access to that environment. I
am planning to retry this soon and will let you know if I make any
progress.

--
Regards,
Nazir Bilal Yavuz
Microsoft

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Sami Imseih 2025-07-17 18:19:44 Re: track generic and custom plans in pg_stat_statements
Previous Message Masahiko Sawada 2025-07-17 17:25:27 Re: Conflict detection for update_deleted in logical replication