[Perl/perl5]

2023-09-18 Thread Tony Cook via perl5-changes
  Branch: refs/heads/cid464357-using-uninitialized
  Home:   https://github.com/Perl/perl5


[Perl/perl5] 7b30f3: stop coverity complaining about copying uninitiali...

2023-09-18 Thread Tony Cook via perl5-changes
  Branch: refs/heads/cid464357-using-uninitialized
  Home:   https://github.com/Perl/perl5
  Commit: 7b30f3f2954a582523a11f3f816630ed69f78f6a
  
https://github.com/Perl/perl5/commit/7b30f3f2954a582523a11f3f816630ed69f78f6a
  Author: Tony Cook 
  Date:   2023-09-18 (Mon, 18 Sep 2023)

  Changed paths:
M locale.c

  Log Message:
  ---
  stop coverity complaining about copying uninitialised tm_gmtoff, tm_zone

This was reported in the two callers to S_ints_to_tm():

Using uninitialized value mytm.tm_gmtoff when calling S_ints_to_tm.
Using uninitialized value mytm.tm_zone when calling S_ints_to_tm.

cids 464354, 464357


  Commit: cd2ae681d9fd0372615f0a8526c220c8e4487d40
  
https://github.com/Perl/perl5/commit/cd2ae681d9fd0372615f0a8526c220c8e4487d40
  Author: Tony Cook 
  Date:   2023-09-18 (Mon, 18 Sep 2023)

  Changed paths:
M regcomp_debug.c

  Log Message:
  ---
  regdump_intflags: there is no  PL_reg_intflags_name[REG_INTFLAGS_NAME_SIZE]

Yes, this is an old report, from 2014.

cid29034


  Commit: 190839e471602fd8e898ecd95b61782cb8c00fc5
  
https://github.com/Perl/perl5/commit/190839e471602fd8e898ecd95b61782cb8c00fc5
  Author: Tony Cook 
  Date:   2023-09-19 (Tue, 19 Sep 2023)

  Changed paths:
M regcomp_debug.c

  Log Message:
  ---
  regcomp_debug.c: change a mis-use of ASSUME() to STATIC_ASSERT_STMT()

As mauke points out in #21490 the compiler "knows" all of the
constants here at compile-time, so the ASSUME()s here do nothing.

I suspect the intent here was to ensure that we never overflow the
capacity of the flags parameter, which we can check at compile-time
with STATIC_ASSERT_STMT().

mauke also suggested using CHAR_BIT instead of 8, but Configure
probes for CHARBITS and the perl core generally uses CHARBITS,
so use that here too.


Compare: https://github.com/Perl/perl5/compare/7b30f3f2954a%5E...190839e47160


[Perl/perl5] c3aaa5: Perldelta for GH# 21442

2023-09-18 Thread Richard Leach via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: c3aaa52ff5a9796b4c9048031ed0c374216c497e
  
https://github.com/Perl/perl5/commit/c3aaa52ff5a9796b4c9048031ed0c374216c497e
  Author: Richard Leach 
  Date:   2023-09-19 (Tue, 19 Sep 2023)

  Changed paths:
M pod/perldelta.pod

  Log Message:
  ---
  Perldelta for GH# 21442




[Perl/perl5] f37008: perldelta for d62dd48c3e

2023-09-18 Thread James E Keenan via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: f37008d536ffa84b1f66f634a52f8464f8dc8f58
  
https://github.com/Perl/perl5/commit/f37008d536ffa84b1f66f634a52f8464f8dc8f58
  Author: James E Keenan 
  Date:   2023-09-18 (Mon, 18 Sep 2023)

  Changed paths:
M pod/perldelta.pod

  Log Message:
  ---
  perldelta for d62dd48c3e




[Perl/perl5] fd4b7d: Mingw compiled with UCRT is locale thread-safe

2023-09-18 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: fd4b7dbea2a88d10f13abc7ed631961b32593200
  
https://github.com/Perl/perl5/commit/fd4b7dbea2a88d10f13abc7ed631961b32593200
  Author: Karl Williamson 
  Date:   2023-09-18 (Mon, 18 Sep 2023)

  Changed paths:
M perl.h

  Log Message:
  ---
  Mingw compiled with UCRT is locale thread-safe

The previous libc routines used with this weren't, but the ones in UCRT
do have this capability.  Take advantage of them.




[Perl/perl5] d62dd4: `GetOpt::Std`: Fix import methods

2023-09-18 Thread Elvin Aslanov via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: d62dd48c3ee7e6e5cee9d356fc1874492bbd930b
  
https://github.com/Perl/perl5/commit/d62dd48c3ee7e6e5cee9d356fc1874492bbd930b
  Author: Elvin Aslanov 
  Date:   2023-09-18 (Mon, 18 Sep 2023)

  Changed paths:
M lib/Getopt/Std.pm
M lib/Getopt/Std.t

  Log Message:
  ---
  `GetOpt::Std`: Fix import methods

Also some minor documention, formatting, styling

Fixes https://github.com/Perl/perl5/issues/21465

Add `\my %opt` syntax tests per @jkeenan