Re: pgsql: createdb: Fix quoting of --encoding, --lc-ctype and--lc-collate - Mailing list pgsql-committers

From Alvaro Herrera
Subject Re: pgsql: createdb: Fix quoting of --encoding, --lc-ctype and--lc-collate
Date
Msg-id 20200227142520.GA4703@alvherre.pgsql
Whole thread Raw
In response to Re: pgsql: createdb: Fix quoting of --encoding, --lc-ctype and--lc-collate  (Michael Paquier <michael@paquier.xyz>)
List pgsql-committers
On 2020-Feb-27, Michael Paquier wrote:

> Now looking at the code of OpenBSD there could be an
> alternative: using a string longer than 256 characters if I read
> lib/libc/locale/setlocale.c correctly, but I'd rather not rely on
> that.

That seems awfully fragile.  Belated +1 for not relying on that :-)

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pgsql: createdb: Fix quoting of --encoding, --lc-ctype and--lc-collate
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Record parents of triggers