pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: gavinpanella@gmail.com
Subject: BUG #18136: lc_messages is the empty string but should be 'C'?
Date: Wed, 27 Sep 2023 15:04:55 +0000
Message-ID: <18136-4914128da6cfc502@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18136
Logged by:          Gavin Panella
Email address:      gavinpanella@gmail.com
PostgreSQL version: 16.0
Operating system:   macOS
Description:        

Given a server:

```
initdb -D foo --locale=C
pg_ctl start -D foo -l logfile -w -o "-h '' -k $PWD/foo"
```

In PostgreSQL 16.0 the value of lc_messages is the empty string.

But in PostgreSQL from 9.x through to 15.x the value of lc_messages is
'C'.

I have tried using `initdb ... --lc-messages=C` and `LC_MESSAGES=C pg_ctl
start ...` and `LC_MESSAGES=C psql ...` with the same result.

However, if I run initdb with a locale other than C, e.g. POSIX or fr_FR,
then the value of lc_messages *does* reflect my choice.

Using --lc-messages with initdb also sets lc_messages as expected.

(This is something I observed from some test suites I run, and I dug into it
to see if there was a problem. Other than needing me to update those tests,
it is not affecting me at present.)



Message-ID: <18136-4914128da6cfc502@postgresql.org>
Permalink:  ../18136-4914128da6cfc502@postgresql.org/
Also on:    postgresql.org/message-id/18136-4914128da6cfc502@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, gavinpanella@gmail.com
  Subject: Re: BUG #18136: lc_messages is the empty string but should be 'C'?
  In-Reply-To: <18136-4914128da6cfc502@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox