Re: NLS: use gettext() to translate system error messages - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: NLS: use gettext() to translate system error messages
Date
Msg-id 3f987bda543f2c08301b404be31a2a289911301b.camel@j-davis.com
Whole thread Raw
In response to Re: NLS: use gettext() to translate system error messages  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, 2025-12-23 at 15:21 -0500, Tom Lane wrote:
> Surely RHEL8 does not pre-date glibc's ability to translate messages.
> I suspect I have some system-wide setting for this, or maybe a
> missing package on that machine?

Probably a missing language package.

>   But anyway, I think this reinforces
> my point that we should (and do) act similarly to other programs.

It depends on the perspective. For a system administrator, what you say
makes sense. But from a Postgres user who is expecting consistent
translation, it can be a bit mysterious. And from an engineering
standpoint, translation through strerror() is not tested and -- as far
as I can tell -- only works on glibc.

Regards,
    Jeff Davis




pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: NLS: use gettext() to translate system error messages
Next
From: "Joel Jacobson"
Date:
Subject: Re: Optimize LISTEN/NOTIFY