Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com> writes:
> On Fri, Dec 05, 2025 at 09:47:56AM -0500, Tom Lane wrote:
>> Cool, how'd you find these?
> With the help of a coccinelle script. Will polish and share.
Ah. Your script didn't notice the need for const'ification of
additional variables in map_locale() :-(. I fixed that and
pushed everything except the ecpg/preproc/variable.c changes,
which I'm not too comfortable about yet. (The code coverage
report shows that large chunks of those functions are untested,
so I wonder if they worked before let alone after.)
regards, tom lane