[Perl/perl5] cd1eee: hv.c: ALWAYS perform in_collision check

2022-03-04 Thread Yves Orton via perl5-changes
  Branch: refs/heads/yves/always_determine_if_hash_insert_is_collision
  Home:   https://github.com/Perl/perl5
  Commit: cd1eee8bc15db2e64794ea43d06e14a705936eb6
  
https://github.com/Perl/perl5/commit/cd1eee8bc15db2e64794ea43d06e14a705936eb6
  Author: Yves Orton 
  Date:   2022-03-05 (Sat, 05 Mar 2022)

  Changed paths:
M hv.c

  Log Message:
  ---
  hv.c: ALWAYS perform in_collision check

This is a critical patch. Any perl built with the previous code
without PERL_HASH_RANDOMIZE_KEYS would never perform a key split!




[Perl/perl5] 3be56d: leont vote for 5bc1e5fdd

2022-03-04 Thread Leon Timmermans via perl5-changes
  Branch: refs/heads/maint-votes
  Home:   https://github.com/Perl/perl5
  Commit: 3be56dc23b9452bfaba3aed2f86071158282dc71
  
https://github.com/Perl/perl5/commit/3be56dc23b9452bfaba3aed2f86071158282dc71
  Author: Leon Timmermans 
  Date:   2022-03-05 (Sat, 05 Mar 2022)

  Changed paths:
M votes-5.34.xml

  Log Message:
  ---
  leont vote for 5bc1e5fdd




[Perl/perl5] 961ab5: 1 vote for 5bc1e5fdd

2022-03-04 Thread James E Keenan via perl5-changes
  Branch: refs/heads/maint-votes
  Home:   https://github.com/Perl/perl5
  Commit: 961ab545752bf5522a53e160341ba507b38e973c
  
https://github.com/Perl/perl5/commit/961ab545752bf5522a53e160341ba507b38e973c
  Author: James E Keenan 
  Date:   2022-03-05 (Sat, 05 Mar 2022)

  Changed paths:
M votes-5.34.xml

  Log Message:
  ---
  1 vote for 5bc1e5fdd




[Perl/perl5]

2022-03-04 Thread Hugo van der Sanden via perl5-changes
  Branch: refs/heads/hv/gh19010-rebase
  Home:   https://github.com/Perl/perl5


[Perl/perl5]

2022-03-04 Thread Hugo van der Sanden via perl5-changes
  Branch: refs/heads/hv/gh19010
  Home:   https://github.com/Perl/perl5


[Perl/perl5] 7294e9: gh19010: fix returns for Perl_grok_infnan

2022-03-04 Thread Hugo van der Sanden via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 7294e9f9f09f98d7bff4bfdae266a8f8121f907c
  
https://github.com/Perl/perl5/commit/7294e9f9f09f98d7bff4bfdae266a8f8121f907c
  Author: Hugo van der Sanden 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M ext/XS-APItest/t/grok.t
M numeric.c

  Log Message:
  ---
  gh19010: fix returns for Perl_grok_infnan

Consistently honour what the docs have always promised:
  If an infinity or a not-a-number is recognized, C<*sp> will point to
  one byte past the end of the recognized string.  If the recognition fails,
  zero is returned, and C<*sp> will not move.

Additionally, restore Perl_grok_number_flags to allowing inf/nan with
trailing garbage only when called with PERL_SCAN_TRAILING; add notes
to the other two core callers to clarify that they always accept such
trailing garbage.

A small number of XS-APItest tests were modified to reflect the stricter
behaviour: "Infin" and "nanx" are now invalid without PERL_SCAN_TRAILING.


  Commit: 6e5a616fb95344835944fb3cab56c5c69a3b9848
  
https://github.com/Perl/perl5/commit/6e5a616fb95344835944fb3cab56c5c69a3b9848
  Author: Hugo van der Sanden 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M numeric.c

  Log Message:
  ---
  gh19010: regularize handling of trailing whitespace on inf/nan

Always accept trailing whitespace when parsing Inf/NaN constructs, even
inside parens, without flagging as "trailing garbage".

Also fix off-by-one checking whether we reached the close-paren of
'nan(123)'.


  Commit: 46da8a0d99e5820fe6ceeeb483a44ebf547bbff0
  
https://github.com/Perl/perl5/commit/46da8a0d99e5820fe6ceeeb483a44ebf547bbff0
  Author: Hugo van der Sanden 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M ext/XS-APItest/t/grok.t

  Log Message:
  ---
  gh19010: simplify and expand inf/nan tests

We know how grok results should vary with and without PERL_SCAN_TRAILING
both for inputs with trailing garbage and those without, so abstract
that out and test both cases for each input.


  Commit: 1bd2ffc2ed1dd21ac38de7e081c97ef241eebf5b
  
https://github.com/Perl/perl5/commit/1bd2ffc2ed1dd21ac38de7e081c97ef241eebf5b
  Author: Hugo van der Sanden 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M numeric.c

  Log Message:
  ---
  gh19010: add NOT_REACHED


Compare: https://github.com/Perl/perl5/compare/98656496a12e...1bd2ffc2ed1d


[Perl/perl5] 986564: Add Brad Barden to the AUTHORS file

2022-03-04 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 98656496a12e0020bb1e4b971adc847ab7698c9d
  
https://github.com/Perl/perl5/commit/98656496a12e0020bb1e4b971adc847ab7698c9d
  Author: Karl Williamson 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M AUTHORS

  Log Message:
  ---
  Add Brad Barden to the AUTHORS file




[Perl/perl5] abbd2f: Add PerlIO_readlink backcompat defines to Cws.xs

2022-03-04 Thread Leon Timmermans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: abbd2f4f4eac77962aadc53b540032162164678e
  
https://github.com/Perl/perl5/commit/abbd2f4f4eac77962aadc53b540032162164678e
  Author: Leon Timmermans 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M dist/PathTools/Cwd.pm
M dist/PathTools/Cwd.xs
M dist/PathTools/lib/File/Spec.pm
M dist/PathTools/lib/File/Spec/AmigaOS.pm
M dist/PathTools/lib/File/Spec/Cygwin.pm
M dist/PathTools/lib/File/Spec/Epoc.pm
M dist/PathTools/lib/File/Spec/Functions.pm
M dist/PathTools/lib/File/Spec/Mac.pm
M dist/PathTools/lib/File/Spec/OS2.pm
M dist/PathTools/lib/File/Spec/Unix.pm
M dist/PathTools/lib/File/Spec/VMS.pm
M dist/PathTools/lib/File/Spec/Win32.pm

  Log Message:
  ---
  Add PerlIO_readlink backcompat defines to Cws.xs




[Perl/perl5] a8abfc: sv.c: reuse NV-to-IV/UV conversion code for SV-to-...

2022-03-04 Thread TAKAI Kousuke via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: a8abfc692a3a7b7910a113eb2baeed9015cfa2cf
  
https://github.com/Perl/perl5/commit/a8abfc692a3a7b7910a113eb2baeed9015cfa2cf
  Author: TAKAI Kousuke <62541129+t-...@users.noreply.github.com>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M sv.c

  Log Message:
  ---
  sv.c: reuse NV-to-IV/UV conversion code for SV-to-NV-to-IV/UV conversion

S_sv_2iuv_common() had two NV to IV/UV conversion code, one is used when
input is NOKp, another is used when converting a string to IV/UV via NV
(as long as NV_PRESERVES_UV is defined).  These two conversions should be
identical, so sharing one code will be clearer and make code a bit compact.


  Commit: 0b247afb376f3999887b297797ac52730fad1d03
  
https://github.com/Perl/perl5/commit/0b247afb376f3999887b297797ac52730fad1d03
  Author: TAKAI Kousuke <62541129+t-...@users.noreply.github.com>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M MANIFEST
A t/op/numify_chkflags.t

  Log Message:
  ---
  Add tests to see if string-to-number conversion behaves correctly

I added these tests primarily to verify that my previous commit did
not introduce any behavioral change; these tests should not fail
even before that commit.


Compare: https://github.com/Perl/perl5/compare/8131b14be4bd...0b247afb376f


[Perl/perl5] 8131b1: Make sv_dump() (and Devel::Peek) escape PV content...

2022-03-04 Thread Felipe Gasper via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 8131b14be4bd2c1e114ba08e4a2cbe76db0a4e22
  
https://github.com/Perl/perl5/commit/8131b14be4bd2c1e114ba08e4a2cbe76db0a4e22
  Author: Felipe Gasper 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M dump.c
M ext/Devel-Peek/t/Peek.t
M perl.h
M pod/perldelta.pod

  Log Message:
  ---
  Make sv_dump() (and Devel::Peek) escape PV contents with hex, not octal.

This improves the readability of SV dumps for those more familiar with
hex than octal--which, in 2022, is probably an outsized majority of
programmers.




[Perl/perl5] 31b3ca: regcomp.c: Add utility macros to wrap mutations of...

2022-03-04 Thread Yves Orton via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 31b3ca879289d508d6a9146a63003f21b701683d
  
https://github.com/Perl/perl5/commit/31b3ca879289d508d6a9146a63003f21b701683d
  Author: Yves Orton 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c: Add utility macros to wrap mutations of RExC_parse

* RExC_parse_incf(flag)
* RExC_parse_inc()
* RExC_parse_inc_safef(flag)
* RExC_parse_inc_safe()
* RExC_parse_inc_utf8()
* RExC_parse_inc_if_char()
* RExC_parse_inc_by(n_octets)
* RExC_parse_set(to_ptr)

See comments in patch for explanation of each one.


  Commit: c9838684b6f85be4960fc0ba23fd97d8e06a9b0f
  
https://github.com/Perl/perl5/commit/c9838684b6f85be4960fc0ba23fd97d8e06a9b0f
  Author: Yves Orton 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c: Replace `RExC_parse++` with RExC_parse_inc_by(1)


  Commit: 6a47f9302373864435dceaab31f8535bb5d1a610
  
https://github.com/Perl/perl5/commit/6a47f9302373864435dceaab31f8535bb5d1a610
  Author: Yves Orton 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c: Replace `RExC_parse = x` with RExC_parse_set(x)


  Commit: 7d7c745ff851157f7b49654698f14185d45c0e5b
  
https://github.com/Perl/perl5/commit/7d7c745ff851157f7b49654698f14185d45c0e5b
  Author: Yves Orton 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c: Replace `RExC_parse += UTF8SKIP(RExC_parse)` with 
RExC_parse_inc_utf8


  Commit: d74e063f81f513edf9f8e819e56e5d13f07659bb
  
https://github.com/Perl/perl5/commit/d74e063f81f513edf9f8e819e56e5d13f07659bb
  Author: Yves Orton 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c: Replace `RExC_parse += SKIP_IF_CHAR(...)` with 
RExC_parse_inc_if_char()


  Commit: ef2d9007a52f1cb7c9cc0d417db8ab3758871731
  
https://github.com/Perl/perl5/commit/ef2d9007a52f1cb7c9cc0d417db8ab3758871731
  Author: Yves Orton 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c: Replace `RExC_parse += (UTF) ? UTF8SKIP(RExC_parse) : 1` with 
RExC_parse_inc()


  Commit: e0702de6aebbe50e9a1ed1d3a4c703e4ca5fd8d7
  
https://github.com/Perl/perl5/commit/e0702de6aebbe50e9a1ed1d3a4c703e4ca5fd8d7
  Author: Yves Orton 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c: Replace `RExC_parse += UTF ? UTF8_SAFE_SKIP(...) : 1` with 
RExC_parse_inc_safe()


  Commit: 6808022099ede18edbc3ae788cb2c32040e59ac5
  
https://github.com/Perl/perl5/commit/6808022099ede18edbc3ae788cb2c32040e59ac5
  Author: Yves Orton 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c: Replace `RExC_parse += x` with RExC_parse_inc_by(x)


  Commit: e62a48c0e93fce263b65e7dffd71df5380328735
  
https://github.com/Perl/perl5/commit/e62a48c0e93fce263b65e7dffd71df5380328735
  Author: Yves Orton 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c: Replace `RExC_parse += 2` with RExC_parse_inc_by(2)


  Commit: 8a4f7e019ceeb33732fce1e96ddd60afa7ffd716
  
https://github.com/Perl/perl5/commit/8a4f7e019ceeb33732fce1e96ddd60afa7ffd716
  Author: Yves Orton 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c: Replace RExC_parse_inc() like exprs not using UTF with 
RExC_parse_incf()

Mostly RExC_parse mutations using UTF8SKIP(RExC_parse) use the UTF flag
to determine if they should increment by 1 or increment by the
UTF8SKIP() return value, but this one uses a different flag


Compare: https://github.com/Perl/perl5/compare/1e2aa9cdc0f7...8a4f7e019cee


[Perl/perl5] 1e2aa9: enable x64 -Duselongdouble build for all mingw-run...

2022-03-04 Thread sisyphus via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 1e2aa9cdc0f7d9ce8de83083d78d75630b330e4e
  
https://github.com/Perl/perl5/commit/1e2aa9cdc0f7d9ce8de83083d78d75630b330e4e
  Author: sisyphus 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M perl.h

  Log Message:
  ---
  enable x64 -Duselongdouble build for all mingw-runtime versions.

See https://github.com/Perl/perl5/issues/18363




[Perl/perl5] f8312f: gh19010: add NOT_REACHED

2022-03-04 Thread Hugo van der Sanden via perl5-changes
  Branch: refs/heads/hv/gh19010
  Home:   https://github.com/Perl/perl5
  Commit: f8312f207e8c5c01f7a74e6f4adab0ee95c1a336
  
https://github.com/Perl/perl5/commit/f8312f207e8c5c01f7a74e6f4adab0ee95c1a336
  Author: Hugo van der Sanden 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M numeric.c

  Log Message:
  ---
  gh19010: add NOT_REACHED




[Perl/perl5] 09a2c5: gh19010: fix returns for Perl_grok_infnan

2022-03-04 Thread Hugo van der Sanden via perl5-changes
  Branch: refs/heads/hv/gh19010-rebase
  Home:   https://github.com/Perl/perl5
  Commit: 09a2c5b3ff14532fb65623bb460b1c5659e942e9
  
https://github.com/Perl/perl5/commit/09a2c5b3ff14532fb65623bb460b1c5659e942e9
  Author: Hugo van der Sanden 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M ext/XS-APItest/t/grok.t
M numeric.c

  Log Message:
  ---
  gh19010: fix returns for Perl_grok_infnan

Consistently honour what the docs have always promised:
  If an infinity or a not-a-number is recognized, C<*sp> will point to
  one byte past the end of the recognized string.  If the recognition fails,
  zero is returned, and C<*sp> will not move.

Additionally, restore Perl_grok_number_flags to allowing inf/nan with
trailing garbage only when called with PERL_SCAN_TRAILING; add notes
to the other two core callers to clarify that they always accept such
trailing garbage.

Whitespace handling is regularized: trailing whitespace after anything
successfully parsed is always accepted, and does not trigger setting
IS_NUMBER_TRAILING.

A small number of XS-APItest tests were modified to reflect the stricter
behaviour: "Infin" and "nanx" are now invalid without PERL_SCAN_TRAILING.

An additional inconsistency (GH #19464) is commented in the tests but
not addressed here.




[Perl/perl5]

2022-03-04 Thread James E Keenan via perl5-changes
  Branch: refs/heads/gh-19482-maint-5.34-gdbm-problem-20220303
  Home:   https://github.com/Perl/perl5


[Perl/perl5]

2022-03-04 Thread James E Keenan via perl5-changes
  Branch: refs/heads/smoke-me/jkeenan/gh-19482-maint-5.34-gdbm-problem-20220303
  Home:   https://github.com/Perl/perl5


[Perl/perl5] b5d8c4: Fix definition of ITEM_NOT_FOUND for pre-1.13 vers...

2022-03-04 Thread Sergey Poznyakoff via perl5-changes
  Branch: refs/heads/gh-19482-maint-5.34-gdbm-problem-20220303
  Home:   https://github.com/Perl/perl5
  Commit: b5d8c464eb23a35393788e20c0295a00e00d4364
  
https://github.com/Perl/perl5/commit/b5d8c464eb23a35393788e20c0295a00e00d4364
  Author: Sergey Poznyakoff 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M ext/GDBM_File/GDBM_File.pm
M ext/GDBM_File/GDBM_File.xs

  Log Message:
  ---
  Fix definition of ITEM_NOT_FOUND for pre-1.13 versions.

Signed-off-by: James E Keenan 

Also: Correct typos spotted by Steve Hay during code review at
https://github.com/Perl/perl5/pull/19491#pullrequestreview-899943434.
Increment $VERSION.




[Perl/perl5] e37e18: Fix GH Issue #19472: read warnings from open($fh,"...

2022-03-04 Thread Yves Orton via perl5-changes
  Branch: refs/heads/yves/fix_19472_warns_on_undef_scalar_ref_open
  Home:   https://github.com/Perl/perl5
  Commit: e37e1871004c652aa53f190d4ba1caecf8eefac5
  
https://github.com/Perl/perl5/commit/e37e1871004c652aa53f190d4ba1caecf8eefac5
  Author: Yves Orton 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M doio.c
M pod/perlfunc.pod
M t/io/open.t

  Log Message:
  ---
  Fix GH Issue #19472: read warnings from open($fh,">",\(my $x))

We produce all kinds of warnings if someone opens a scalar reference
that is undef. Prior to this we handled write operations ok, at
least in blead, but read operations would produce a plethora of
warnings. To me this analogous to treating an undef var as hash
and trying to read from it, we autovivify the undef var to be
a hash. So in this case we should just "autovivify" the referenced
scalar to be an empty string.

Eg. before this patch:

./perl -Ilib -wle'open my $fh,"+>", \(my $v); my @x=<$fh>; print 0+@x'
Use of uninitialized value $fh in  at -e line 1.
Use of uninitialized value $fh in  at -e line 1.
Use of uninitialized value $fh in  at -e line 1.
Use of uninitialized value $fh in  at -e line 1.
Use of uninitialized value $fh in  at -e line 1.
Use of uninitialized value $fh in  at -e line 1.
Use of uninitialized value $fh in  at -e line 1.
0

After it:
./perl -Ilib -wle'open my $fh,"+>", \(my $v); my @x=<$fh>; print 0+@x'
0




[Perl/perl5] 90877c: Remove cherry picked commit

2022-03-04 Thread Steve Hay via perl5-changes
  Branch: refs/heads/maint-votes
  Home:   https://github.com/Perl/perl5
  Commit: 90877c8b1c72fa8b578c2da3bb0a6397a8c733e8
  
https://github.com/Perl/perl5/commit/90877c8b1c72fa8b578c2da3bb0a6397a8c733e8
  Author: Steve Hay 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M votes-5.34.xml

  Log Message:
  ---
  Remove cherry picked commit


  Commit: ac6196536da7991912cf2fc31c096f2d773ccbad
  
https://github.com/Perl/perl5/commit/ac6196536da7991912cf2fc31c096f2d773ccbad
  Author: Steve Hay 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M votes-5.34.xml

  Log Message:
  ---
  Propose another test fix found by Jim & Leon


Compare: https://github.com/Perl/perl5/compare/c759088787ec...ac6196536da7


[Perl/perl5] e6d41d: Nothing changed in SIGINFO for OpenBSD 7.0

2022-03-04 Thread Andrew Fresh via perl5-changes
  Branch: refs/heads/maint-5.34
  Home:   https://github.com/Perl/perl5
  Commit: e6d41d9faa6e40e60f8004e91dcc503b46c0ac42
  
https://github.com/Perl/perl5/commit/e6d41d9faa6e40e60f8004e91dcc503b46c0ac42
  Author: Andrew Hewus Fresh 
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
M ext/POSIX/t/sigaction.t

  Log Message:
  ---
  Nothing changed in SIGINFO for OpenBSD 7.0

We'll check back in five years for OpenBSD 8.0 unless someone notices a
fix before then.

(cherry picked from commit fa26526789fbf61d704bd6291823c16ed912f342)