[Perl/perl5] b2da45: locale.c: Add 2 missing lines

2024-01-21 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: b2da456cf039047e0f6ff218fe759a84b1ebaf24
  
https://github.com/Perl/perl5/commit/b2da456cf039047e0f6ff218fe759a84b1ebaf24
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M locale.c

  Log Message:
  ---
  locale.c: Add 2 missing lines

These somehow did not get included in
afc6e1ac7f0c8208d2dba809f585e996fd63548f.

I don't know how they got dropped.  It had to be a rebase, but they
weren't anywhere near any conflicts that had to be resolved.  I'll just
have to be more on the lookout in the future.

This would only show up on a platform without nl_langinfo() (Windows and
MingW typically), and for a locale whose decimal point is neither a dot
nor a comma.




[Perl/perl5] 800cef: locale.c: Use sv_setsv_nomg() over SvSetSV()

2024-01-21 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 800cef83424dbe60b8c9dbd98997f526e902a0da
  
https://github.com/Perl/perl5/commit/800cef83424dbe60b8c9dbd98997f526e902a0da
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M locale.c

  Log Message:
  ---
  locale.c: Use sv_setsv_nomg() over SvSetSV()

This avoids checking for magic and that the source and destination
aren't the same.  We know here these are not the case.




[Perl/perl5] 117d49: locale.c: No need to SAVEFREEPV literal return

2024-01-21 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 117d494eb4db9e622b2ce8dc2c67a22b40050578
  
https://github.com/Perl/perl5/commit/117d494eb4db9e622b2ce8dc2c67a22b40050578
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M locale.c

  Log Message:
  ---
  locale.c: No need to SAVEFREEPV literal return

The return from this function is normally a copy set to be automatically
freed later; but no copy is needed for "literal" returns.




[Perl/perl5] edcae9: POSIX.xs: Perl_localeconv() always returns somethi...

2024-01-21 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: edcae9b84ddbeba50b53c1d906ed12b18f037065
  
https://github.com/Perl/perl5/commit/edcae9b84ddbeba50b53c1d906ed12b18f037065
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M ext/POSIX/POSIX.xs
M ext/POSIX/lib/POSIX.pm
M ext/POSIX/t/posix.t

  Log Message:
  ---
  POSIX.xs: Perl_localeconv() always returns something now

Commit 0b52bb633d8c55bb15f05cdb19a4b7cb071ea271 changed this.  So now
the POSIX module can always call it, and doesn't have to skip testing.




[Perl/perl5] a07946: makedef.pl: Sync duplicated code with perl.h

2024-01-21 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: a07946c06f5ab5da446ac3d6b9835f60643f8269
  
https://github.com/Perl/perl5/commit/a07946c06f5ab5da446ac3d6b9835f60643f8269
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M makedef.pl

  Log Message:
  ---
  makedef.pl: Sync duplicated code with perl.h

These two files each have a portion that must be manually kept in
parallel.  This changes a line in makedef.pl to mirror the corresponding
perl.h line




[Perl/perl5] 26e5c0: perlapi: Note return from Perl_localeconv is mortal

2024-01-21 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 26e5c0b6f9a82d0f4d9df203596ac0cb79904c18
  
https://github.com/Perl/perl5/commit/26e5c0b6f9a82d0f4d9df203596ac0cb79904c18
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M locale.c

  Log Message:
  ---
  perlapi: Note return from Perl_localeconv is mortal




[Perl/perl5] d08b8b: locale.c: Refactor some code

2024-01-21 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: d08b8b16a4be8a7b245732aadf4c10d6ba242d5c
  
https://github.com/Perl/perl5/commit/d08b8b16a4be8a7b245732aadf4c10d6ba242d5c
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M locale.c

  Log Message:
  ---
  locale.c: Refactor some code

Three conditions share some code.  By setting two variables in the
switch case: statements for each, there is no need to iterate on the
hash; we can directly delete the desired SV, which allows all three
conditions to share more code.  This delete allows a later sv_set() to
steal a PV.


  Commit: 0f494ec14c04e2a535493e619c1248df3f2aa8a2
  
https://github.com/Perl/perl5/commit/0f494ec14c04e2a535493e619c1248df3f2aa8a2
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M locale.c

  Log Message:
  ---
  locale.c: Don't compile unreachable code


Compare: https://github.com/Perl/perl5/compare/5da3697fe7b8...0f494ec14c04


[Perl/perl5] 5da369: locale.c: Use hv_deletes instead of hv_delete.

2024-01-21 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 5da3697fe7b846b59e8b928aeafdcc4e45f09c05
  
https://github.com/Perl/perl5/commit/5da3697fe7b846b59e8b928aeafdcc4e45f09c05
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M locale.c

  Log Message:
  ---
  locale.c: Use hv_deletes instead of hv_delete.

I stumbled upon this macro where the parameter must be a literal.

It is hardly used in core.  Should it be API?




[Perl/perl5] afc6e1: locale.c: Simplify some preprocessor directives

2024-01-21 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: afc6e1ac7f0c8208d2dba809f585e996fd63548f
  
https://github.com/Perl/perl5/commit/afc6e1ac7f0c8208d2dba809f585e996fd63548f
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M locale.c

  Log Message:
  ---
  locale.c: Simplify some preprocessor directives

This bit of common code is to be compiled if any combination of three
other bits get compiled.  Have each of them #define a symbol that it got
compiled, so that the common bit only needs to check for that #define




[Perl/perl5] 96a432: locale.c: ALT_DIGITS should be empty not "0" when ...

2024-01-21 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 96a4323e9d03702ad7250050abc6aeb19cb30266
  
https://github.com/Perl/perl5/commit/96a4323e9d03702ad7250050abc6aeb19cb30266
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M locale.c

  Log Message:
  ---
  locale.c: ALT_DIGITS should be empty not "0" when none

This and the next commit fix the incorrect behavior that perl has always
had for nl_langinfo(ALT_DIGITS).

If there are no alternate digits, an empty string is returned by
nl_langinfo when there are no such alternate digits.  This should also
be the case on platforms where we emulate nl_langinfo, but instead "0"
was being returned.  This commit makes things consistent.

The next commit adds tests


  Commit: cc68a74a641e534b51b21dcc10b1c0b4d366da2b
  
https://github.com/Perl/perl5/commit/cc68a74a641e534b51b21dcc10b1c0b4d366da2b
  Author: Karl Williamson 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M ext/I18N-Langinfo/Langinfo.pm
M lib/locale.t
M locale.c
M pod/perldelta.pod

  Log Message:
  ---
  Fix langinfo(ALT_DIGITS)

This has never worked properly before in Perl.  The code is returning
the result of the libc function nl_langinfo().  The documentation for it
that I have found (and presumably my predecessors) is very unclear.  But
what actually happens (from using gdb) is that the return is very C
unfriendly.

Instead of returning a NUL-terminated string, it returns 100 (perhaps
fewer) NUL-terminated strings in a row.  When it is fewer (given the
few examples I've seen), the final one ends with two NULs in a row.  (I
can't think of a way for it to work and be otherwise).  The 100th one
doesn't necessarily have two terminating NULs.

Prior to this commit, only the string for the zeroth digit was returned;
now the entire ALT_DIGIT string sequence is returned, forcing a double
NUL at the end of the final one.

This information is accessible in several ways.  Via XS, one can use any
of several functions, including the newly introduced sv_langinfo(),
returning an SV, which allows for easier handling of embedded NULs.
(Otherwise in XS, using the functions that return a char*, one has to
look for the double-NUL.)

>From Perl-space, the access is via I18N::Langinfo, which behind the
scenes also uses an SV.  The documentation added in this commit gives
advice for how to turn the return into an @array for more convenient
access.


Compare: https://github.com/Perl/perl5/compare/d8b7e57ae089...cc68a74a641e


[Perl/perl5] d8b7e5: Module-CoreList version bumpity

2024-01-21 Thread Chris Williams via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: d8b7e57ae089463120b2a43f7e4fef7a8ab48601
  
https://github.com/Perl/perl5/commit/d8b7e57ae089463120b2a43f7e4fef7a8ab48601
  Author: Chris 'BinGOs' Williams 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M Porting/Maintainers.pl
M dist/Module-CoreList/lib/Module/CoreList.pm
M dist/Module-CoreList/lib/Module/CoreList/Utils.pm

  Log Message:
  ---
  Module-CoreList version bumpity

also fixup some of the contained data




[Perl/perl5] 67452e: new perldelta

2024-01-21 Thread Graham Knop via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 67452e5596eb9284df37d88bff410d3e0c7443da
  
https://github.com/Perl/perl5/commit/67452e5596eb9284df37d88bff410d3e0c7443da
  Author: Graham Knop 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M MANIFEST
M Makefile.SH
M pod/.gitignore
M pod/perl.pod
A pod/perl5397delta.pod
M pod/perldelta.pod
M vms/descrip_mms.template
M win32/GNUmakefile
M win32/Makefile
M win32/pod.mak

  Log Message:
  ---
  new perldelta




[Perl/perl5] 4b4007: Storable: reformat and fix up change log

2024-01-21 Thread Graham Knop via perl5-changes
  Branch: refs/heads/haarg/storable-changelog
  Home:   https://github.com/Perl/perl5
  Commit: 4b4007782cc7b1d6a3b3c5d34a5e57b1d9cd3c06
  
https://github.com/Perl/perl5/commit/4b4007782cc7b1d6a3b3c5d34a5e57b1d9cd3c06
  Author: Graham Knop 
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
M dist/Storable/ChangeLog

  Log Message:
  ---
  Storable: reformat and fix up change log

Update the change log for Storable to match a format more commonly used,
and is parsable by tools like CPAN::Changes and MetaCPAN.

The version numbers are reformatted to match the actual module version
number.

For very earlier releases, some missing entries were restored, and some
others were written from scratch.