Re: BUG #17946: LC_MONETARY & DO LANGUAGE plperl - BUG - Mailing list pgsql-bugs

From Joe Conway
Subject Re: BUG #17946: LC_MONETARY & DO LANGUAGE plperl - BUG
Date
Msg-id 574a1afa-5c6e-829c-0fed-a9ff44719f9f@joeconway.com
Whole thread Raw
In response to Re: BUG #17946: LC_MONETARY & DO LANGUAGE plperl - BUG  (Joe Conway <mail@joeconway.com>)
Responses Re: BUG #17946: LC_MONETARY & DO LANGUAGE plperl - BUG  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: BUG #17946: LC_MONETARY & DO LANGUAGE plperl - BUG  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-bugs
On 6/10/23 15:07, Joe Conway wrote:
> On 6/10/23 14:42, Tom Lane wrote:
>> Joe Conway <mail@joeconway.com> writes:
>>> 5/ The attached fixes the issue for me on pg10 and passes check-world.
>>> Comments?
>> 
>> The call in PGLC_localeconv seems *very* oddly placed.  Why not
>> do that before it does any other locale calls?  Otherwise you don't
>> really have reason to believe you're saving the appropriate
>> values to restore later.
> 
> 
> As far as I can tell it really only affects localeconv(), so I tried to
> place it close to those. But I am fine with moving it up.

This version is against pg16 (rather than pg10), moves up that hunk, 
mentions localeconv() in the comment as the reason for the call, and 
fixes some whitespace sloppiness. I will plan to apply to all supported 
branches.

Better?


-- 
Joe Conway
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachment

pgsql-bugs by date:

Previous
From: Joe Conway
Date:
Subject: Re: BUG #17946: LC_MONETARY & DO LANGUAGE plperl - BUG
Next
From: Tom Lane
Date:
Subject: Re: BUG #17946: LC_MONETARY & DO LANGUAGE plperl - BUG