Branch: refs/heads/smoke-me/khw-dimitry
Home: https://github.com/Perl/perl5
Commit: 9c048e68ff605e20cdc4fb3ae2160e9279c51dcc
https://github.com/Perl/perl5/commit/9c048e68ff605e20cdc4fb3ae2160e9279c51dcc
Author: Karl Williamson <[email protected]>
Date: 2022-12-17 (Sat, 17 Dec 2022)
Changed paths:
M ext/XS-APItest/APItest.xs
M ext/XS-APItest/t/locale.t
Log Message:
-----------
Add testing global locale switching; Todo #20565
API switch_to_global_locale() and sync_locale() weren't tested because I
hadn't figured out a way to do so, but @dk showed me the way in his
reproducing case for GH #20565.
Commit: b1d2f0aa3c6af6ef5eea8f84e47b3a0f88d19107
https://github.com/Perl/perl5/commit/b1d2f0aa3c6af6ef5eea8f84e47b3a0f88d19107
Author: Karl Williamson <[email protected]>
Date: 2022-12-17 (Sat, 17 Dec 2022)
Changed paths:
M embed.fnc
M embed.h
M ext/XS-APItest/t/locale.t
M locale.c
M proto.h
Log Message:
-----------
Fix broken API: sync_locale()
This fixes GH #20565.
Lack of tests allowed sync_locale() to get broken until CPAN testing
showed it so.
Basically, I blew it in 9f5a615be674d7663d3b4719849baa1ba3027f5b. Most
egregiously, I forgot to turn back on when a sync_locale() is executed,
the toggling for locales whose radix character isn't a dot. And this
needs a way to tell the other code that it needs to recompute things at
this time, since our records don't reflect what happened before the
sync.
Compare: https://github.com/Perl/perl5/compare/a16e29ec4aa8...b1d2f0aa3c6a