Branch: refs/heads/smoke-me/jkeenan/khw-localeconv
Home: https://github.com/Perl/perl5
Commit: e102a9a8693b04d005cf51c2023a058ff1da9e02
https://github.com/Perl/perl5/commit/e102a9a8693b04d005cf51c2023a058ff1da9e02
Author: Karl Williamson <[email protected]>
Date: 2022-12-17 (Sat, 17 Dec 2022)
Changed paths:
M ext/POSIX/lib/POSIX.pm
M ext/POSIX/lib/POSIX.pod
M locale.c
M pod/perldelta.pod
Log Message:
-----------
Address GH #20571
The blamed commit, 04de022, exposed a bug in the module itself. I will
submit a PR to fix it.
But this ticket did tell me that there was a problem with that commit.
It returned a C language value, CHAR_MAX, which doesn't really have a
corresponding concept in Perl. Instead we use -1 to indicate that a
positive-valued variable is in some abnormal state. This commit changes
to do that, and documents the changes, which should have been done in
04de022.