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

Andres Freund <andres@anarazel.de>

Commit: ad95a639ab0948ca931d54a158a2f20f0cebd4a5
Author: Andres Freund <andres@anarazel.de>
Date: 2022-01-31T00:42:49Z
Releases: 11.15
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@wagner.pp.ru>
Reviewed-By: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Discussion: https://postgr.es/m/20200501134711.08750c5f@antares.wagner.home
Backpatch: all versions

Files

PathChange+/−
src/pl/plperl/plperl.c modified +8 −5

Discussion