pgsql: plperl: windows: Use Perl_setlocale on 5.28+, fixing compile fai

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: plperl: windows: Use Perl_setlocale on 5.28+, fixing compile fai
Date: 2022-01-31 00:44:39
Message-ID: E1nEKoB-0007Fc-HF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

plperl: windows: Use Perl_setlocale on 5.28+, fixing compile failure.

For older versions we need our own copy of perl's setlocale(), because it was
not exposed (why we need the setlocale in the first place is explained in
plperl_init_interp) . The copy stopped working in 5.28, as some of the used
macros are not public anymore. But Perl_setlocale is available in 5.28, so
use that.

Author: Victor Wagner <vitus(at)wagner(dot)pp(dot)ru>
Reviewed-By: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
Discussion: https://postgr.es/m/20200501134711.08750c5f@antares.wagner.home
Backpatch: all versions

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8484e38126d7522069e44b81cd41ef53f700b2e1

Modified Files
--------------
src/pl/plperl/plperl.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-01-31 00:44:42 pgsql: plperl: windows: Use Perl_setlocale on 5.28+, fixing compile fai
Previous Message Andres Freund 2022-01-31 00:44:36 pgsql: plperl: windows: Use Perl_setlocale on 5.28+, fixing compile fai