Thread

  1. Re: NLS: use gettext() to translate system error messages

    Jeff Davis <pgsql@j-davis.com> — 2025-12-26T19:33:21Z

    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