[Perl/perl5] b9b8c7: Fixed a bug that % operator returns wrong result w...

2024-04-13 Thread TAKAI Kousuke via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: b9b8c7d2e8567b5c6652a643b4a44af22e06f2bc
  
https://github.com/Perl/perl5/commit/b9b8c7d2e8567b5c6652a643b4a44af22e06f2bc
  Author: TAKAI Kousuke <62541129+t-...@users.noreply.github.com>
  Date:   2024-04-13 (Sat, 13 Apr 2024)

  Changed paths:
M handy.h
M pp.c
M t/op/64bitint.t
M t/opbasic/arith.t

  Log Message:
  ---
  Fixed a bug that % operator returns wrong result when modulo is (IV_MIN - 1)

If $m % $n would generate a result that shall be equal to (IV_MIN - 1),
pp_modulo() used to wrongly convert it into IV and return wrapped
(overflowed) result.

handy.h: Added utility macros for this fix.  I think these macro can
be used in other places, so I put them on .h file.

t/opbasic/arith.t, t/op/64bitint.t: Added tests for this.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 1e3b32: sv.c: Slightly optimize IV range check in S_sv_2iu...

2024-04-13 Thread TAKAI Kousuke via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 1e3b3238f23137440041d8883e041e4da74876f5
  
https://github.com/Perl/perl5/commit/1e3b3238f23137440041d8883e041e4da74876f5
  Author: TAKAI Kousuke <62541129+t-...@users.noreply.github.com>
  Date:   2024-04-13 (Sat, 13 Apr 2024)

  Changed paths:
M sv.c

  Log Message:
  ---
  sv.c: Slightly optimize IV range check in S_sv_2iuv_common()

The code was like "iv != IV_MIN && CONST > abs(iv)", but more
straightforward equivalent "-(CONST - 1) <= iv && iv <= (CONST - 1)"
does not require special treatment of IV_MIN and will be compiled to
a bit better code (lesser total number of comparisons).



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] cab7c3: Configure: eliminate some left over debug output

2024-04-11 Thread Tony Cook via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: cab7c329680aa887117b3e0568f000f7e5acf605
  
https://github.com/Perl/perl5/commit/cab7c329680aa887117b3e0568f000f7e5acf605
  Author: Tony Cook 
  Date:   2024-04-12 (Fri, 12 Apr 2024)

  Changed paths:
M Configure

  Log Message:
  ---
  Configure: eliminate some left over debug output

The LC_ALL syntax detection wrote some of what it detected to
the console with no labels.

On Linux this was:

  "=;"

for both lines, but I've seen more complex output on other systems.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] f7cf35: Bump VERSION in warnings.pm

2024-04-11 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: f7cf35fe95da5c2386ce921ebf0813afafad96be
  
https://github.com/Perl/perl5/commit/f7cf35fe95da5c2386ce921ebf0813afafad96be
  Author: Paul "LeoNerd" Evans 
  Date:   2024-04-11 (Thu, 11 Apr 2024)

  Changed paths:
M lib/warnings.pm
M regen/warnings.pl

  Log Message:
  ---
  Bump VERSION in warnings.pm


  Commit: b8caf0c1f256ef2e52bae4109552667742ab2b2a
  
https://github.com/Perl/perl5/commit/b8caf0c1f256ef2e52bae4109552667742ab2b2a
  Author: Paul "LeoNerd" Evans 
  Date:   2024-04-11 (Thu, 11 Apr 2024)

  Changed paths:
M lib/B/Deparse.t
M lib/builtin.t
M lib/feature.pm
M pod/perldiag.pod
M pod/perlexperiment.pod
M pod/perlsyn.pod
M regen/feature.pl
M t/op/try.t
M t/perf/opcount.t
M toke.c

  Log Message:
  ---
  Remove experimental warnings from basic try/catch syntax

try/catch/finally remains experimental because of questions around
double-exception


  Commit: 1d1580e58f626f162acfd8d4785763bb5b9b1648
  
https://github.com/Perl/perl5/commit/1d1580e58f626f162acfd8d4785763bb5b9b1648
  Author: Paul "LeoNerd" Evans 
  Date:   2024-04-11 (Thu, 11 Apr 2024)

  Changed paths:
M lib/B/Deparse.t
M lib/warnings.pm
M pod/perldiag.pod
M pod/perlexperiment.pod
M pod/perlsub.pod
M regen/warnings.pl
M t/op/anonconst.t
M toke.c
M warnings.h

  Log Message:
  ---
  Remove experimental warnings from sub :const attribute


  Commit: 4b6ad5110c29c13149771584eabe8b42feb5c63c
  
https://github.com/Perl/perl5/commit/4b6ad5110c29c13149771584eabe8b42feb5c63c
  Author: Paul "LeoNerd" Evans 
  Date:   2024-04-11 (Thu, 11 Apr 2024)

  Changed paths:
M lib/B/Deparse.t
M lib/builtin.t
M lib/warnings.pm
M pod/perlexperiment.pod
M pod/perlsyn.pod
M regen/warnings.pl
M t/op/for-many.t
M toke.c
M warnings.h

  Log Message:
  ---
  Remove experimental warnings from foreach with list of variables


  Commit: a09a0269dd243971b28401d82f5214932d0d6c8f
  
https://github.com/Perl/perl5/commit/a09a0269dd243971b28401d82f5214932d0d6c8f
  Author: Paul "LeoNerd" Evans 
  Date:   2024-04-11 (Thu, 11 Apr 2024)

  Changed paths:
M lib/feature.pm
M lib/warnings.pm
M pod/perldiag.pod
M pod/perlexperiment.pod
M regen/feature.pl
M regen/warnings.pl
M t/op/lex.t
M toke.c
M warnings.h

  Log Message:
  ---
  Remove experimental warnings from extra paired delimiters


Compare: https://github.com/Perl/perl5/compare/e78caca8144e...a09a0269dd24

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 0bad64: Add TODO test for GH #22062

2024-04-10 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 0bad64386aa24daf5fa28a2a8e302d7e4dcbf32a
  
https://github.com/Perl/perl5/commit/0bad64386aa24daf5fa28a2a8e302d7e4dcbf32a
  Author: Karl Williamson 
  Date:   2024-04-10 (Wed, 10 Apr 2024)

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

  Log Message:
  ---
  Add TODO test for GH #22062

This will be fixed in the next commit, and the TODO removed.


  Commit: e78caca8144e26d9096bd78e6abdcb6b59a22379
  
https://github.com/Perl/perl5/commit/e78caca8144e26d9096bd78e6abdcb6b59a22379
  Author: Karl Williamson 
  Date:   2024-04-10 (Wed, 10 Apr 2024)

  Changed paths:
M embed.fnc
M embed.h
M ext/POSIX/lib/POSIX.pod
M ext/POSIX/t/time.t
M locale.c

  Log Message:
  ---
  Revert not using mini_mktime()

This fixes GH #22062, which has extensive discussion not repeated in
this commit message


Compare: https://github.com/Perl/perl5/compare/4a55343c55f9...e78caca8144e

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5]

2024-04-10 Thread Graham Knop via perl5-changes
  Branch: refs/heads/haarg/fix-deparse-state-sub
  Home:   https://github.com/Perl/perl5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 4a5534: fix deparse of state sub with empty prototype

2024-04-10 Thread Graham Knop via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 4a55343c55f905436e15ff5f201f15bd2bf39ca7
  
https://github.com/Perl/perl5/commit/4a55343c55f905436e15ff5f201f15bd2bf39ca7
  Author: Graham Knop 
  Date:   2024-04-10 (Wed, 10 Apr 2024)

  Changed paths:
M lib/B/Deparse.pm
M lib/B/Deparse.t

  Log Message:
  ---
  fix deparse of state sub with empty prototype

Fixes #21315



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] d15f6e: feature.pm: Fix small typo of 'stilll' in docs

2024-04-06 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: d15f6e9d45077d8ecabf346379f17906fdb9b061
  
https://github.com/Perl/perl5/commit/d15f6e9d45077d8ecabf346379f17906fdb9b061
  Author: Paul "LeoNerd" Evans 
  Date:   2024-04-06 (Sat, 06 Apr 2024)

  Changed paths:
M lib/feature.pm
M regen/feature.pl

  Log Message:
  ---
  feature.pm: Fix small typo of 'stilll' in docs



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 6fc2ba: Add TODO test for GH #22062

2024-04-05 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/smoke-me/jkeenan/khw/revertmktime
  Home:   https://github.com/Perl/perl5
  Commit: 6fc2ba591414c8a65d2d0be36e36fc16ffb1e682
  
https://github.com/Perl/perl5/commit/6fc2ba591414c8a65d2d0be36e36fc16ffb1e682
  Author: Karl Williamson 
  Date:   2024-04-03 (Wed, 03 Apr 2024)

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

  Log Message:
  ---
  Add TODO test for GH #22062

This will be fixed in the next commit, and the TODO removed.


  Commit: 3d28dc3019f58a8ef94aee45c071c39af7d88c10
  
https://github.com/Perl/perl5/commit/3d28dc3019f58a8ef94aee45c071c39af7d88c10
  Author: Karl Williamson 
  Date:   2024-04-04 (Thu, 04 Apr 2024)

  Changed paths:
M embed.fnc
M embed.h
M ext/POSIX/lib/POSIX.pod
M ext/POSIX/t/time.t
M locale.c

  Log Message:
  ---
  Revert not using mini_mktime()

This fixes GH #22062, which has extensive discussion not repeated in
this commit message


Compare: https://github.com/Perl/perl5/compare/6fc2ba591414%5E...3d28dc3019f5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] ed3601: fix deparse of state sub with empty prototype

2024-04-04 Thread Graham Knop via perl5-changes
  Branch: refs/heads/haarg/fix-deparse-state-sub
  Home:   https://github.com/Perl/perl5
  Commit: ed36011d72604a1b486a52f2a644c4d36051fc12
  
https://github.com/Perl/perl5/commit/ed36011d72604a1b486a52f2a644c4d36051fc12
  Author: Graham Knop 
  Date:   2024-04-04 (Thu, 04 Apr 2024)

  Changed paths:
M lib/B/Deparse.pm
M lib/B/Deparse.t

  Log Message:
  ---
  fix deparse of state sub with empty prototype

Fixes #21315



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 53a6f7: `README.riscos`: Improve the document

2024-04-03 Thread Elvin Aslanov via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 53a6f7aabfcbe508ff3e0835802d2dd2be935816
  
https://github.com/Perl/perl5/commit/53a6f7aabfcbe508ff3e0835802d2dd2be935816
  Author: Elvin Aslanov 
  Date:   2024-04-03 (Wed, 03 Apr 2024)

  Changed paths:
M README.riscos

  Log Message:
  ---
  `README.riscos`: Improve the document

Enhance formatting, minor clarifications etc

https://perldoc.perl.org/perlriscos



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] f38f76: h2ph: define all symbols at runtime

2024-04-03 Thread mauke via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: f38f760a1129030b3a4c5c3a3fe49409a65327c2
  
https://github.com/Perl/perl5/commit/f38f760a1129030b3a4c5c3a3fe49409a65327c2
  Author: Lukas Mai 
  Date:   2024-04-03 (Wed, 03 Apr 2024)

  Changed paths:
M t/lib/h2ph.h
M t/lib/h2ph.pht
M utils/h2ph.PL

  Log Message:
  ---
  h2ph: define all symbols at runtime

Preprocessor directives must be processed strictly in order. `#if` and
`#ifdef` directives can inspect the current state of defined symbols.
That's why it is wrong to translate `#define FOO() ...` to `sub foo() {
... }` since subroutine definitions are processed unconditionally at
compile time, before the rest of the code starts running.

In particular,

unless(defined(&FOO)) {
sub FOO () { eval q(1); }
}

is equivalent to

# at compile time:
sub FOO () { eval q(1); }

# ... later, at runtime:
unless(defined(&FOO)) {
# does nothing
}

Fix this case by always wrapping subroutines in eval '...', which moves
the symbol definition to runtime, regardless of what $t (our indentation
state) is.

Similarly, generate `_h2ph_pre.ph` without the functionally useless
`unless (defined &...) { }` blocks. We don't need runtime definitions
(via eval) here because nothing in this file depends on the dynamic
state of macro definitions. It's all `#define`s, no `#if`s.

Fixes #22109.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] bcd28b: fixup comment in S_trie_bitmap_set_folded()

2024-04-02 Thread iabyn via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: bcd28b1883bd29813e3d8a6c8e2330f87b91cbcc
  
https://github.com/Perl/perl5/commit/bcd28b1883bd29813e3d8a6c8e2330f87b91cbcc
  Author: David Mitchell 
  Date:   2024-04-02 (Tue, 02 Apr 2024)

  Changed paths:
M regcomp_trie.c

  Log Message:
  ---
  fixup comment in S_trie_bitmap_set_folded()

Karl pointed out that the comment was only accurate on non-EBCDIC
systems.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] a73aa5: Minor fixups to S_trie_bitmap_set_folded()

2024-04-02 Thread iabyn via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: a73aa540c8f8c4ec3268573ffcacdccbed9d0854
  
https://github.com/Perl/perl5/commit/a73aa540c8f8c4ec3268573ffcacdccbed9d0854
  Author: David Mitchell 
  Date:   2024-04-02 (Tue, 02 Apr 2024)

  Changed paths:
M regcomp_trie.c

  Log Message:
  ---
  Minor fixups to S_trie_bitmap_set_folded()

This is a new static function which replaces a similar macro. Yves
pointed out that 'uvc' wasn't a good name for a variable which isn't of
type UV, and Hugo pointed out that a (U8) cast was redundant.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5]

2024-04-02 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/simplify_make_trie
  Home:   https://github.com/Perl/perl5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 336ff8: make TRIE_BITMAP_SET_FOLDED macro into a function

2024-04-02 Thread iabyn via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 336ff86118129713ab83e0ed3654a3836d6f3078
  
https://github.com/Perl/perl5/commit/336ff86118129713ab83e0ed3654a3836d6f3078
  Author: David Mitchell 
  Date:   2024-04-02 (Tue, 02 Apr 2024)

  Changed paths:
M regcomp_trie.c

  Log Message:
  ---
  make TRIE_BITMAP_SET_FOLDED macro into a function

This is a private macro used just in regcomp_trie.c. It uses lots of
macros itself, so locating problems quickly leads to Macro Hell. So this
commit converts it into a static (but *not* inline) function.


  Commit: 589e2b8538d6d149efcec73b7d1dd78c59c4
  
https://github.com/Perl/perl5/commit/589e2b8538d6d149efcec73b7d1dd78c59c4
  Author: David Mitchell 
  Date:   2024-04-02 (Tue, 02 Apr 2024)

  Changed paths:
M regcomp_trie.c

  Log Message:
  ---
  Slightly optimise S_trie_bitmap_set_folded()

This static function in regcomp_trie.c evaluates UTF8_TWO_BYTE_HI(uvc)
twice, because a macro it calls uses the passed expression twice.
So calculate the value once into a local var.

Now, the compiler might already optimise this. But this commit may
or may not also have the (hoped for) side effect of shutting up a
Coverity warning.

The code is taking an 8-bit variant char, calculating what its upper
byte would be if converted to utf-8 (so in this case, only 0xc2 and 0xc3
are possible), then setting a bit in a trie representing this value. The
bit setting involves calculating the byte and bit offsets - the former
by doing >>3. But doing that shift on c2/c3 always gives the same
value, so Coverity is rightfully warning that UTF8_TWO_BYTE_HI(uvc) >> 3
is always constant.

By splitting that expression into two statements, maybe Coverity won't
notice. If it still does, at least this commit simplifies the code and
will make any eventual fix easier.

Here's the original Coverity report (it's complaining about the macro
which the previous commit subsequently turned into a static function):

>>> CID 488118:(CONSTANT_EXPRESSION_RESULT)
>>> "(UV)(U8)(((UV)(*ch | 0) >> 6) | 192UL /* (U8)~(0xff >> 2) */) >> 3" is
0x18 regardless of the values of its operands. This occurs as a value.
1403 TRIE_BITMAP_SET_FOLDED(trie,*ch, 
folder);


Compare: https://github.com/Perl/perl5/compare/0fff722e99f3...589e2b8538d6

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5]

2024-04-02 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/coverity
  Home:   https://github.com/Perl/perl5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 0fff72: Perl_rcpv_new(): add assert(pv)

2024-04-02 Thread iabyn via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 0fff722e99f30a5b4c8e2c5467539d90ec15fcab
  
https://github.com/Perl/perl5/commit/0fff722e99f30a5b4c8e2c5467539d90ec15fcab
  Author: David Mitchell 
  Date:   2024-04-02 (Tue, 02 Apr 2024)

  Changed paths:
M op.c

  Log Message:
  ---
  Perl_rcpv_new(): add assert(pv)

When this function is called with the RCPVf_USE_STRLEN flag, it gets the
string length by calling strlen(pv). Coverity (CID 376192) points out
that pv could be NULL.

This commit adds an assert(pv), so that the code will bail out on the
line before the strlen() in this case, which is probably enough to
silence Coverity. Perhaps we aught to have a proper croak() there, but
this is a utility function mainly used in limited places in the core,
where the caller likely knows that they're doing.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] c635fa: testsuite.yml: workaround cygwin base address conf...

2024-04-01 Thread Tony Cook via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: c635fa2209aa81381fc45f5e89f5b16144056521
  
https://github.com/Perl/perl5/commit/c635fa2209aa81381fc45f5e89f5b16144056521
  Author: Tony Cook 
  Date:   2024-04-02 (Tue, 02 Apr 2024)

  Changed paths:
M .github/workflows/testsuite.yml

  Log Message:
  ---
  testsuite.yml: workaround cygwin base address conflict in 5.39.10

Workaround for #22104

This will likely be reverted for 5.39.11


  Commit: 748d5f47d4c7fe30742f4d7dcef2ee27a2d613f2
  
https://github.com/Perl/perl5/commit/748d5f47d4c7fe30742f4d7dcef2ee27a2d613f2
  Author: Tony Cook 
  Date:   2024-04-02 (Tue, 02 Apr 2024)

  Changed paths:
M pod/perldelta.pod

  Log Message:
  ---
  perldelta: note the address space conflict on cygwin


Compare: https://github.com/Perl/perl5/compare/e2c324f7a9d3...748d5f47d4c7

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 8e2d66: perl.h Move ENV lock defns

2024-04-01 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 8e2d6658ad95cc17a9c0333c9f0ee9e3a03e1560
  
https://github.com/Perl/perl5/commit/8e2d6658ad95cc17a9c0333c9f0ee9e3a03e1560
  Author: Karl Williamson 
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
M perl.h

  Log Message:
  ---
  perl.h Move ENV lock defns


  Commit: 54ea92987ca84430d44cad2d1f5e753279635f21
  
https://github.com/Perl/perl5/commit/54ea92987ca84430d44cad2d1f5e753279635f21
  Author: Karl Williamson 
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
M perl.h

  Log Message:
  ---
  perl.h: Use auxiliary #define for simplicity

Prior to this commit we avoided #defining a symbol until later, so that
that fact could be used for further decisions.  But this is a bit
awkward, and so this commit introduces an additional #define that can be
used for the decisions, while defining the symbol at the place where it
makes the most sense to.


  Commit: b393f59889f07f932bfa726bac8ca3de211d3614
  
https://github.com/Perl/perl5/commit/b393f59889f07f932bfa726bac8ca3de211d3614
  Author: Karl Williamson 
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
M perl.h

  Log Message:
  ---
  perl.h: Move things so gwLOCK definitions are adjacent


  Commit: eadcf592626fb22bfbbb3d7fc8213f1eea4bdc5f
  
https://github.com/Perl/perl5/commit/eadcf592626fb22bfbbb3d7fc8213f1eea4bdc5f
  Author: Karl Williamson 
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
M perl.h

  Log Message:
  ---
  perl.h: Move locale macro definitions

This moves the non-lock macro definitions to after the lock ones.


  Commit: e2c324f7a9d351414e33a0a91d6df8716a61739d
  
https://github.com/Perl/perl5/commit/e2c324f7a9d351414e33a0a91d6df8716a61739d
  Author: Karl Williamson 
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
M perl.h

  Log Message:
  ---
  perl.h Move locale mutex init/destruct

I can't find a place in this file for this to go that isn't somewhat
awkward.  Because the environment and locale mutexes are intertwined,
they naturally fit together.  One would think the basic initialization
and termination of the locale mutexes should go ahead of their use.  But
because of all the complications, that interrupts the flow of the logic
between the environment and locale mutexes, so this commit moves them to
later in the file.


Compare: https://github.com/Perl/perl5/compare/a2ad59817f19...e2c324f7a9d3

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] aaa937: Perl_rcpv_new(): add assert(pv)

2024-04-01 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/coverity
  Home:   https://github.com/Perl/perl5
  Commit: aaa937ab653d8f440944925d1b03d2a05955f9c3
  
https://github.com/Perl/perl5/commit/aaa937ab653d8f440944925d1b03d2a05955f9c3
  Author: David Mitchell 
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
M op.c

  Log Message:
  ---
  Perl_rcpv_new(): add assert(pv)

When this function is called with the RCPVf_USE_STRLEN flag, it gets the
string length by calling strlen(pv). Coverity (CID 376192) points out
that pv could be NULL.

This commit adds an assert(pv), so that the code will bail out on the
line before the strlen() in this case, which is probably enough to
silence Coverity. Perhaps we aught to have a proper croak() there, but
this is a utility function mainly used in limited places in the core,
where the caller likely knows that they're doing.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] f7c9d5: make TRIE_BITMAP_SET_FOLDED macro into a function

2024-04-01 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/simplify_make_trie
  Home:   https://github.com/Perl/perl5
  Commit: f7c9d55bf7282c4d4cc155a4a3084ae328f19a96
  
https://github.com/Perl/perl5/commit/f7c9d55bf7282c4d4cc155a4a3084ae328f19a96
  Author: David Mitchell 
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
M regcomp_trie.c

  Log Message:
  ---
  make TRIE_BITMAP_SET_FOLDED macro into a function

This is a private macro used just in regcomp_trie.c. It uses lots of
macros itself, so locating problems quickly leads to Macro Hell. So this
commit converts it into a static (but *not* inline) function.


  Commit: d3ddc7c49dd025aab0bfcdc741dbfa6d0a71535e
  
https://github.com/Perl/perl5/commit/d3ddc7c49dd025aab0bfcdc741dbfa6d0a71535e
  Author: David Mitchell 
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
M regcomp_trie.c

  Log Message:
  ---
  Slightly optimise S_trie_bitmap_set_folded()

This static function in regcomp_trie.c evaluates UTF8_TWO_BYTE_HI(uvc)
twice, because a macro it calls uses the passed expression twice.
So calculate the value once into a local var.

Now, the compiler might already optimise this. But this commit may
or may not also have the (hoped for) side effect of shutting up a
Coverity warning.

The code is taking an 8-bit variant char, calculating what its upper
byte would be if converted to utf-8 (so in this case, only 0xc2 and 0xc3
are possible), then setting a bit in a trie representing this value. The
bit setting involves calculating the byte and bit offsets - the former
by doing >>3. But doing that shift on c2/c3 always gives the same
value, so Coverity is rightfully warning that UTF8_TWO_BYTE_HI(uvc) >> 3
is always constant.

By splitting that expression into two statements, maybe Coverity won't
notice. If it still does, at least this commit simplifies the code and
will make any eventual fix easier.

Here's the original Coverity report (it's complaining about the macro
which the previous commit subsequently turned into a static function):

>>> CID 488118:(CONSTANT_EXPRESSION_RESULT)
>>> "(UV)(U8)(((UV)(*ch | 0) >> 6) | 192UL /* (U8)~(0xff >> 2) */) >> 3" is
0x18 regardless of the values of its operands. This occurs as a value.
1403 TRIE_BITMAP_SET_FOLDED(trie,*ch, 
folder);


Compare: https://github.com/Perl/perl5/compare/f7c9d55bf728%5E...d3ddc7c49dd0

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 3d63a3: lock

2024-03-30 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/smoke-me/khw-env
  Home:   https://github.com/Perl/perl5
  Commit: 3d63a3d7a349d5155a4cb60591ba6436363fe9d6
  
https://github.com/Perl/perl5/commit/3d63a3d7a349d5155a4cb60591ba6436363fe9d6
  Author: Karl Williamson 
  Date:   2024-03-30 (Sat, 30 Mar 2024)

  Changed paths:
M lock_definitions.h
M perl.h
M reentr.c
M regen/lock_definitions.pl
M regen/reentr.pl
M util.c

  Log Message:
  ---
  lock



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] c11afd: lib/locale.t:

2024-03-30 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/smoke-me/khw-env
  Home:   https://github.com/Perl/perl5
  Commit: c11afdbc91d680645229bf66cc2118a93aa8a8fd
  
https://github.com/Perl/perl5/commit/c11afdbc91d680645229bf66cc2118a93aa8a8fd
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M lib/locale.t

  Log Message:
  ---
  lib/locale.t:

Fixes #21697.

On some platforms, a locale name is specified in the code page (or
code set) that applies to it, rather than plain ASCII.  Windows, and
hence MingW, is the prime example.

The locale name for a particular Turkish variety found in MingW is
"Turkish_T?.1254" where the question marks represent different
characters that have meaning in the 1254 code page, but would look like
mojibake if I had reproduced their actual values here.

When doing a setlocale() here, if the current code page is incompatible
with the new one, it will fail; if compatible it will succeed.

On my box running MingW, locales are tried out by this test file in
alphabetical order, and the one before this Turkish happens to be Thai,
with a code page of 874.  Apparently 1254 is not compatible with 874, so
switching directly from Thai to Turkish fails.

The solution is to switch into a neutral code page before switching into
one being trialed.  "C" works in this case, and I suspect in all others.


  Commit: 07ffafe2b49e09fdefb43ed6f55af5a5a5e8c4be
  
https://github.com/Perl/perl5/commit/07ffafe2b49e09fdefb43ed6f55af5a5a5e8c4be
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M charclass_invlists.h
M lib/unicore/Makefile
M lib/unicore/mktables
M lib/unicore/uni_keywords.pl
M regcharclass.h
M uni_keywords.h

  Log Message:
  ---
  mktables more verbose


  Commit: f3f418098df0ce6d8083b57c8be668aa4e94a56c
  
https://github.com/Perl/perl5/commit/f3f418098df0ce6d8083b57c8be668aa4e94a56c
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M cpan/Pod-Simple/lib/Pod/Simple/BlackBox.pm

  Log Message:
  ---
  BlackBox dont use rare scripts


  Commit: cddc981158d776aa4590fc18c627c2978bdc7d41
  
https://github.com/Perl/perl5/commit/cddc981158d776aa4590fc18c627c2978bdc7d41
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M t/harness

  Log Message:
  ---
  XXX t/harness temp tweaks


  Commit: 5b074092f24434eebc856ad54246b5c74c34931a
  
https://github.com/Perl/perl5/commit/5b074092f24434eebc856ad54246b5c74c34931a
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M t/harness

  Log Message:
  ---
  XXX skip croak.t under sanitizer


  Commit: fa5bf606ec206af209d7693206b8e8abec6d10d8
  
https://github.com/Perl/perl5/commit/fa5bf606ec206af209d7693206b8e8abec6d10d8
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M t/porting/bincompat.t

  Log Message:
  ---
  skip bincompat.t


  Commit: 8a6e9f7268acf519f9a35010dc247e632db0c9ed
  
https://github.com/Perl/perl5/commit/8a6e9f7268acf519f9a35010dc247e632db0c9ed
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M t/porting/bincompat.t

  Log Message:
  ---
  Revert "skip bincompat.t"

This reverts commit 559abf36660fef3e16d1cd33dc5aa6ca2202b88c.


  Commit: 1df2a73705835c2f5f14e1cf47eb62c07d2782cf
  
https://github.com/Perl/perl5/commit/1df2a73705835c2f5f14e1cf47eb62c07d2782cf
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M t/TEST

  Log Message:
  ---
  Skip cpan testing message


  Commit: d625df97125a6b0cb4c43ef6f09f539b64b7f49d
  
https://github.com/Perl/perl5/commit/d625df97125a6b0cb4c43ef6f09f539b64b7f49d
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M t/TEST

  Log Message:
  ---
  Also skip non-thread dist testing


  Commit: 5cad8684352dcb48bcc2c75e8da5dc84c9c3cdfb
  
https://github.com/Perl/perl5/commit/5cad8684352dcb48bcc2c75e8da5dc84c9c3cdfb
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M cpan/Archive-Tar/t/02_methods.t

  Log Message:
  ---
  XXX skip Archive-Tar because of symlinks


  Commit: c6a0354b8c85b6141740c9c45b20820b420be02a
  
https://github.com/Perl/perl5/commit/c6a0354b8c85b6141740c9c45b20820b420be02a
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M t/porting/cmp_version.t

  Log Message:
  ---
  XXX skip cmp_version.t because of sym links


  Commit: d91592269db67645281fbadf42ef345d91efcff8
  
https://github.com/Perl/perl5/commit/d91592269db67645281fbadf42ef345d91efcff8
  Author: Karl Williamson 
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
M cpan/Sys-Syslog/t/syslog-inet-udp.t
M cpan/Sys-Syslog/t/syslog.t

  Log Mes

[Perl/perl5] a2ad59: Use ccflags in extrefs.t on VMS

2024-03-29 Thread Craig A. Berry
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: a2ad59817f19c5189b436c656571b506a386d267
  
https://github.com/Perl/perl5/commit/a2ad59817f19c5189b436c656571b506a386d267
  Author: Craig A. Berry 
  Date:   2024-03-29 (Fri, 29 Mar 2024)

  Changed paths:
M t/porting/extrefs.t

  Log Message:
  ---
  Use ccflags in extrefs.t on VMS

Otherwise we may not be getting all the options necessary to get
the test program to compile.  This test was failing because of a
symbol name that was too long, but it's fine if we include the
standard flag that shortens symbols.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] a49edd: Don't loop forever in uniqnum.t

2024-03-29 Thread Craig A. Berry
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: a49eddd88634f28613f99206b3279954eb01d8da
  
https://github.com/Perl/perl5/commit/a49eddd88634f28613f99206b3279954eb01d8da
  Author: Craig A. Berry 
  Date:   2024-03-29 (Fri, 29 Mar 2024)

  Changed paths:
M Porting/Maintainers.pl
M cpan/Scalar-List-Utils/t/uniqnum.t
M t/porting/customized.dat

  Log Message:
  ---
  Don't loop forever in uniqnum.t

If infinities are not working, make sure we fail after a few tries
rather than looping infinitely to find infinity. 10 iterations is
arbitrary -- 1 is likely enough in most cases.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] d2c72c: Don't loop forever in uniqnum.t

2024-03-29 Thread Craig A. Berry
  Branch: refs/heads/craigb/uniqnum_infinity
  Home:   https://github.com/Perl/perl5
  Commit: d2c72cde638029694a1a415d6d91b1e45985fdc9
  
https://github.com/Perl/perl5/commit/d2c72cde638029694a1a415d6d91b1e45985fdc9
  Author: Craig A. Berry 
  Date:   2024-03-29 (Fri, 29 Mar 2024)

  Changed paths:
M Porting/Maintainers.pl
M cpan/Scalar-List-Utils/t/uniqnum.t
M t/porting/customized.dat

  Log Message:
  ---
  Don't loop forever in uniqnum.t

If infinities are not working, make sure we fail after a few tries
rather than looping infinitely to find infinity. 10 iterations is
arbitrary -- 1 is likely enough in most cases.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5]

2024-03-26 Thread Graham Knop via perl5-changes
  Branch: refs/heads/haarg/cpan-diff-version-fix
  Home:   https://github.com/Perl/perl5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 3c8d62: Porting/sync-with-cpan - don't die if the Changes ...

2024-03-26 Thread Yves Orton via perl5-changes
  Branch: refs/heads/yves/sync_with_cpan_changes_file_detection
  Home:   https://github.com/Perl/perl5
  Commit: 3c8d6214bd78b42488fd27ac143aa9ca5873c938
  
https://github.com/Perl/perl5/commit/3c8d6214bd78b42488fd27ac143aa9ca5873c938
  Author: Yves Orton 
  Date:   2024-03-26 (Tue, 26 Mar 2024)

  Changed paths:
M Porting/sync-with-cpan

  Log Message:
  ---
  Porting/sync-with-cpan - don't die if the Changes entry detection fails.

We use a heuristic to detect Changes file entries to automate producing
the correct commit message when we update a distribution. If the Changes
file format changes in various the heuristics might break. We don't want
to break the upgrade process for this. We should just fallback to the
old manual commit message process instead.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 1c90da: fix core-cpan-diff and sync-with-cpan to handle di...

2024-03-26 Thread Graham Knop via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 1c90da2f774d7d8c9a984e56746a7b6635c5b518
  
https://github.com/Perl/perl5/commit/1c90da2f774d7d8c9a984e56746a7b6635c5b518
  Author: Graham Knop 
  Date:   2024-03-26 (Tue, 26 Mar 2024)

  Changed paths:
M Porting/core-cpan-diff
M Porting/exec-bit.txt
M Porting/sync-with-cpan

  Log Message:
  ---
  fix core-cpan-diff and sync-with-cpan to handle dist files with v prefixed 
versions

Allow a v prefix on versions expected by the core-cpan-diff and
sync-with-cpan scripts. Also align the two scripts with each other, and
handle the same file extensions expected by PAUSE.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 33280a: fix core-cpan-diff and sync-with-cpan to handle di...

2024-03-26 Thread Graham Knop via perl5-changes
  Branch: refs/heads/haarg/cpan-diff-version-fix
  Home:   https://github.com/Perl/perl5
  Commit: 33280ad034b87de256dbd3c05d37dd81bd8dabe4
  
https://github.com/Perl/perl5/commit/33280ad034b87de256dbd3c05d37dd81bd8dabe4
  Author: Graham Knop 
  Date:   2024-03-26 (Tue, 26 Mar 2024)

  Changed paths:
M Porting/core-cpan-diff
M Porting/exec-bit.txt
M Porting/sync-with-cpan

  Log Message:
  ---
  fix core-cpan-diff and sync-with-cpan to handle dist files with v prefixed 
versions

Allow a v prefix on versions expected by the core-cpan-diff and
sync-with-cpan scripts. Also align the two scripts with each other, and
handle the same file extensions expected by PAUSE.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 274d22: For consistency with other DISTRIBUTION entries

2024-03-26 Thread James E Keenan via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 274d22bb39e627638b5a7f0fcb295d5e01d98a02
  
https://github.com/Perl/perl5/commit/274d22bb39e627638b5a7f0fcb295d5e01d98a02
  Author: James E Keenan 
  Date:   2024-03-26 (Tue, 26 Mar 2024)

  Changed paths:
M Porting/Maintainers.pl

  Log Message:
  ---
  For consistency with other DISTRIBUTION entries

Use single quotes rather than double.  This will facilitate grepping
this file.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] f6754a: fix core-cpan-diff and sync-with-cpan to handle di...

2024-03-25 Thread Graham Knop via perl5-changes
  Branch: refs/heads/haarg/cpan-diff-version-fix
  Home:   https://github.com/Perl/perl5
  Commit: f6754a63b5983681b949dbdf0a153d316f6f8046
  
https://github.com/Perl/perl5/commit/f6754a63b5983681b949dbdf0a153d316f6f8046
  Author: Graham Knop 
  Date:   2024-03-26 (Tue, 26 Mar 2024)

  Changed paths:
M Porting/core-cpan-diff
M Porting/sync-with-cpan

  Log Message:
  ---
  fix core-cpan-diff and sync-with-cpan to handle dist files with v prefixed 
versions

Allow a v prefix on versions expected by the core-cpan-diff and
sync-with-cpan scripts. Also align the two scripts with each other, and
handle the same file extensions expected by PAUSE.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 041600: lib/locale.t:

2024-03-25 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/smoke-me/khw-env
  Home:   https://github.com/Perl/perl5
  Commit: 041600289e553e176266d14e6ec42a19931ac9ae
  
https://github.com/Perl/perl5/commit/041600289e553e176266d14e6ec42a19931ac9ae
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M lib/locale.t

  Log Message:
  ---
  lib/locale.t:

Fixes #21697.

On some platforms, a locale name is specified in the code page (or
code set) that applies to it, rather than plain ASCII.  Windows, and
hence MingW, is the prime example.

The locale name for a particular Turkish variety found in MingW is
"Turkish_T?.1254" where the question marks represent different
characters that have meaning in the 1254 code page, but would look like
mojibake if I had reproduced their actual values here.

When doing a setlocale() here, if the current code page is incompatible
with the new one, it will fail; if compatible it will succeed.

On my box running MingW, locales are tried out by this test file in
alphabetical order, and the one before this Turkish happens to be Thai,
with a code page of 874.  Apparently 1254 is not compatible with 874, so
switching directly from Thai to Turkish fails.

The solution is to switch into a neutral code page before switching into
one being trialed.  "C" works in this case, and I suspect in all others.


  Commit: 6cb2d20c66c4a1c85457669b5ab237e5e2e5c7b3
  
https://github.com/Perl/perl5/commit/6cb2d20c66c4a1c85457669b5ab237e5e2e5c7b3
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M charclass_invlists.h
M lib/unicore/Makefile
M lib/unicore/mktables
M lib/unicore/uni_keywords.pl
M regcharclass.h
M uni_keywords.h

  Log Message:
  ---
  mktables more verbose


  Commit: bc3d94c948dda2eb97d52e891a4311e1373586bd
  
https://github.com/Perl/perl5/commit/bc3d94c948dda2eb97d52e891a4311e1373586bd
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M cpan/Pod-Simple/lib/Pod/Simple/BlackBox.pm

  Log Message:
  ---
  BlackBox dont use rare scripts


  Commit: 354d9763d53a6707bf95cd054f2a3bf5c3c22ebf
  
https://github.com/Perl/perl5/commit/354d9763d53a6707bf95cd054f2a3bf5c3c22ebf
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M t/harness

  Log Message:
  ---
  XXX t/harness temp tweaks


  Commit: 149ed5c5a6204fce50243579b7e766326a2bf671
  
https://github.com/Perl/perl5/commit/149ed5c5a6204fce50243579b7e766326a2bf671
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M t/harness

  Log Message:
  ---
  XXX skip croak.t under sanitizer


  Commit: ae8a636d53976348e100810c5210e4febcd875a2
  
https://github.com/Perl/perl5/commit/ae8a636d53976348e100810c5210e4febcd875a2
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M t/porting/bincompat.t

  Log Message:
  ---
  skip bincompat.t


  Commit: 793fcd7642c845d5ad0d4c8ccf9b2668a5ad0727
  
https://github.com/Perl/perl5/commit/793fcd7642c845d5ad0d4c8ccf9b2668a5ad0727
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M t/porting/bincompat.t

  Log Message:
  ---
  Revert "skip bincompat.t"

This reverts commit 559abf36660fef3e16d1cd33dc5aa6ca2202b88c.


  Commit: cc07f45f81f4c9102c53c68a23d8762c127408de
  
https://github.com/Perl/perl5/commit/cc07f45f81f4c9102c53c68a23d8762c127408de
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M t/TEST

  Log Message:
  ---
  Skip cpan testing message


  Commit: 9772026cae3beb80f9dc0c88ce122c47510a9571
  
https://github.com/Perl/perl5/commit/9772026cae3beb80f9dc0c88ce122c47510a9571
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M t/TEST

  Log Message:
  ---
  Also skip non-thread dist testing


  Commit: 6c7671ecf0c9578bfe20672bfa48b0eccf014ab4
  
https://github.com/Perl/perl5/commit/6c7671ecf0c9578bfe20672bfa48b0eccf014ab4
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M cpan/Archive-Tar/t/02_methods.t

  Log Message:
  ---
  XXX skip Archive-Tar because of symlinks


  Commit: e69baaa1e3d41b5c43c7ce403488704bd85fed8b
  
https://github.com/Perl/perl5/commit/e69baaa1e3d41b5c43c7ce403488704bd85fed8b
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M t/porting/cmp_version.t

  Log Message:
  ---
  XXX skip cmp_version.t because of sym links


  Commit: 416dd74255eebe271d2242c51db140d4f34c00f2
  
https://github.com/Perl/perl5/commit/416dd74255eebe271d2242c51db140d4f34c00f2
  Author: Karl Williamson 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M cpan/Sys-Syslog/t/syslog-inet-udp.t
M cpan/Sys-Syslog/t/syslog.t

  Log Mes

[Perl/perl5] 47696a: For consistency with other DISTRIBUTION entries

2024-03-24 Thread James E Keenan via perl5-changes
  Branch: refs/heads/jkeenan/single-quote-DISTRIBUTION-20240324
  Home:   https://github.com/Perl/perl5
  Commit: 47696a635c1ddfb13c57b88379f4e10c5989f8ee
  
https://github.com/Perl/perl5/commit/47696a635c1ddfb13c57b88379f4e10c5989f8ee
  Author: James E Keenan 
  Date:   2024-03-24 (Sun, 24 Mar 2024)

  Changed paths:
M Porting/Maintainers.pl

  Log Message:
  ---
  For consistency with other DISTRIBUTION entries

Use single quotes rather than double.  This will facilitate grepping
this file.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 2c1e4f: lib/locale.t:

2024-03-24 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/smoke-me/khw-env
  Home:   https://github.com/Perl/perl5
  Commit: 2c1e4ff59eec0830bdc40ba8e10040a9e86ef339
  
https://github.com/Perl/perl5/commit/2c1e4ff59eec0830bdc40ba8e10040a9e86ef339
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M lib/locale.t

  Log Message:
  ---
  lib/locale.t:

Fixes #21697.

On some platforms, a locale name is specified in the code page (or
code set) that applies to it, rather than plain ASCII.  Windows, and
hence MingW, is the prime example.

The locale name for a particular Turkish variety found in MingW is
"Turkish_T?.1254" where the question marks represent different
characters that have meaning in the 1254 code page, but would look like
mojibake if I had reproduced their actual values here.

When doing a setlocale() here, if the current code page is incompatible
with the new one, it will fail; if compatible it will succeed.

On my box running MingW, locales are tried out by this test file in
alphabetical order, and the one before this Turkish happens to be Thai,
with a code page of 874.  Apparently 1254 is not compatible with 874, so
switching directly from Thai to Turkish fails.

The solution is to switch into a neutral code page before switching into
one being trialed.  "C" works in this case, and I suspect in all others.


  Commit: 1cdc020324c503b4447fa0c6b10c7b344bf4174c
  
https://github.com/Perl/perl5/commit/1cdc020324c503b4447fa0c6b10c7b344bf4174c
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M charclass_invlists.h
M lib/unicore/Makefile
M lib/unicore/mktables
M lib/unicore/uni_keywords.pl
M regcharclass.h
M uni_keywords.h

  Log Message:
  ---
  mktables more verbose


  Commit: b7d962c73b68ad3456da1c63ecad622fee0ec4ed
  
https://github.com/Perl/perl5/commit/b7d962c73b68ad3456da1c63ecad622fee0ec4ed
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M cpan/Pod-Simple/lib/Pod/Simple/BlackBox.pm

  Log Message:
  ---
  BlackBox dont use rare scripts


  Commit: 07324230b69aa387a6527377931d643ff47fb958
  
https://github.com/Perl/perl5/commit/07324230b69aa387a6527377931d643ff47fb958
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M t/harness

  Log Message:
  ---
  XXX t/harness temp tweaks


  Commit: 0519f2de7e462d4e1bc49eef90f8522046f8c9de
  
https://github.com/Perl/perl5/commit/0519f2de7e462d4e1bc49eef90f8522046f8c9de
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M t/harness

  Log Message:
  ---
  XXX skip croak.t under sanitizer


  Commit: 4e2d805c0c82ef71caffdb27e564267bb33c6b82
  
https://github.com/Perl/perl5/commit/4e2d805c0c82ef71caffdb27e564267bb33c6b82
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M t/porting/bincompat.t

  Log Message:
  ---
  skip bincompat.t


  Commit: 789758d3f06b0bfc839b9f8a8a37b25f150c7b1b
  
https://github.com/Perl/perl5/commit/789758d3f06b0bfc839b9f8a8a37b25f150c7b1b
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M t/porting/bincompat.t

  Log Message:
  ---
  Revert "skip bincompat.t"

This reverts commit 559abf36660fef3e16d1cd33dc5aa6ca2202b88c.


  Commit: 0736a5ae59e802de030bc2ab45163bff9508b926
  
https://github.com/Perl/perl5/commit/0736a5ae59e802de030bc2ab45163bff9508b926
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M t/TEST

  Log Message:
  ---
  Skip cpan testing message


  Commit: ad50e157aff320eb213404b49bbfbb574dcf6e43
  
https://github.com/Perl/perl5/commit/ad50e157aff320eb213404b49bbfbb574dcf6e43
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M perl.h

  Log Message:
  ---
  runconfigure: only usequery with that directory


  Commit: 98258eeff8d0f8af3b280e980e8057fc0e5c86a7
  
https://github.com/Perl/perl5/commit/98258eeff8d0f8af3b280e980e8057fc0e5c86a7
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M t/TEST

  Log Message:
  ---
  Also skip non-thread dist testing


  Commit: 693a90bdb97fdb1df67cb2f995f46541dad0e0d1
  
https://github.com/Perl/perl5/commit/693a90bdb97fdb1df67cb2f995f46541dad0e0d1
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M cpan/Archive-Tar/t/02_methods.t

  Log Message:
  ---
  XXX skip Archive-Tar because of symlinks


  Commit: 5b36bfd82bb1bad2986e492bb3a8f35677a9630a
  
https://github.com/Perl/perl5/commit/5b36bfd82bb1bad2986e492bb3a8f35677a9630a
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M t/porting/cmp_version.t

  Log Message:
  ---
  XXX skip cmp_version.t b

[Perl/perl5] 49650d: perldelta for a2b66c25985f, save PL_comppad safely

2024-03-24 Thread Tony Cook via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 49650dc5422d71c3b8b8c29867d9f1af6a246a43
  
https://github.com/Perl/perl5/commit/49650dc5422d71c3b8b8c29867d9f1af6a246a43
  Author: Tony Cook 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M pod/perldelta.pod

  Log Message:
  ---
  perldelta for a2b66c25985f, save PL_comppad safely



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] a2b66c: prepare_export_lexical: save PL_comppad safely

2024-03-24 Thread Tony Cook via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: a2b66c25985f6e0bb428250eaa31ef1d288f7785
  
https://github.com/Perl/perl5/commit/a2b66c25985f6e0bb428250eaa31ef1d288f7785
  Author: Tony Cook 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M builtin.c
M lib/builtin.t

  Log Message:
  ---
  prepare_export_lexical: save PL_comppad safely

When the pad being saved and the pad for PL_compcv is the same,
in some cases the actual exports would result in reallocating the
AvARRAY() for the saved PL_comppad.

The LEAVE in finish_export_lexical() would restore the old PL_comppad
(which is fine) and the pre-reallocation PL_curpad (which isn't fine).

This would later panic.

SAVECOMPPAD; restores PL_comppad on LEAVE and then restores PL_curpad
from PL_comppad, preventing the desync between those values.

It's unclear to me why only the save_BEGINs; causes this, but the fix
does fix a real problem and prevents the panics that I'm aware of
here.

Fixes #21981



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 4ec23d: Revert "testsuite.yml: fix ASAN build tests"

2024-03-24 Thread Tony Cook via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 4ec23de8b38b3a0432d4c73e4c13f7a1c1f7cd6c
  
https://github.com/Perl/perl5/commit/4ec23de8b38b3a0432d4c73e4c13f7a1c1f7cd6c
  Author: Tony Cook 
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
M .github/workflows/testsuite.yml

  Log Message:
  ---
  Revert "testsuite.yml: fix ASAN build tests"

This reverts commit d1971b5f57c5a31b1d61d7b2e5816942d69ed954.

ctions/runner-images#9491 has been fixed.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 0921e3: fix deparse of state sub with empty prototype

2024-03-24 Thread Graham Knop via perl5-changes
  Branch: refs/heads/haarg/fix-deparse-state-sub
  Home:   https://github.com/Perl/perl5
  Commit: 0921e34f260c6d1e4a897f914224530089345034
  
https://github.com/Perl/perl5/commit/0921e34f260c6d1e4a897f914224530089345034
  Author: Graham Knop 
  Date:   2024-03-24 (Sun, 24 Mar 2024)

  Changed paths:
M lib/B/Deparse.pm
M lib/B/Deparse.t

  Log Message:
  ---
  fix deparse of state sub with empty prototype

Fixes #21315



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 97c04f: fix deparse of state sub with empty prototype

2024-03-24 Thread Graham Knop via perl5-changes
  Branch: refs/heads/haarg/fix-deparse-state-sub
  Home:   https://github.com/Perl/perl5
  Commit: 97c04fec53ac42c17953db4e12c8a23a499dbde2
  
https://github.com/Perl/perl5/commit/97c04fec53ac42c17953db4e12c8a23a499dbde2
  Author: Graham Knop 
  Date:   2024-03-24 (Sun, 24 Mar 2024)

  Changed paths:
M lib/B/Deparse.pm
M lib/B/Deparse.t

  Log Message:
  ---
  fix deparse of state sub with empty prototype

Fixes #21315



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] b74c4e: add CvEVAL_COMPILED() flag and fix closure bug.

2024-03-22 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/eval_compiled
  Home:   https://github.com/Perl/perl5
  Commit: b74c4e0b67e9cdfcefe3928d59e96aff10ad6f49
  
https://github.com/Perl/perl5/commit/b74c4e0b67e9cdfcefe3928d59e96aff10ad6f49
  Author: David Mitchell 
  Date:   2024-03-22 (Fri, 22 Mar 2024)

  Changed paths:
M cv.h
M dump.c
M op.c
M pad.c
M t/op/eval.t

  Log Message:
  ---
  add CvEVAL_COMPILED() flag and fix closure bug.

EVAL CVs are treated a bit weirdly: their CvROOT() and CvSTART() fields
don't get populated; instead the current values are stored in the
PL_eval_root and PL_eval_start variables while they are being executed.

This caused a bug in closures and nested evals when an inner eval was
repeated twice. The first inner eval accessed an outer lexical, which
caused a fake cache entry to be added to the outer eval's pad. The
second inner eval finds this cached entry, but incorrectly concludes
that the outer eval is in fact an anon sub prototype and issues a
'variable is not available' warning. This is due to this simplistic
definition in pad.c:

#define CvCOMPILED(cv) CvROOT(cv)

This commit adds a new flag, CvEVAL_COMPILED(), to indicate a
fully-compiled EVAL CV. This allows us to work around the limitation.

In an ideal world this would have been fixed instead by making EVAL CVs
first-class citizens with CvROOT() etc, but plenty of stuff seems to
assume otherwise. So I took the path of least resistance.

See https://www.perlmonks.org/?node_id=11158351



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 99efdb: add CvEVAL_COMPILED() flag and fix closure bug.

2024-03-22 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/eval_compiled
  Home:   https://github.com/Perl/perl5
  Commit: 99efdbdeaaf78a23ea899d194a250b7ff33ca069
  
https://github.com/Perl/perl5/commit/99efdbdeaaf78a23ea899d194a250b7ff33ca069
  Author: David Mitchell 
  Date:   2024-03-22 (Fri, 22 Mar 2024)

  Changed paths:
M cv.h
M dump.c
M op.c
M pad.c
M t/op/eval.t

  Log Message:
  ---
  add CvEVAL_COMPILED() flag and fix closure bug.

EVAL CVs are treated a bit weirdly: their CvROOT() and CvSTART() fields
don't get populated; instead the current values are stored in the
PL_eval_root and PL_eval_start variables while they are being executed.

This caused a bug in closures and nested evals when an inner eval was
repeated twice. The first inner eval accessed an outer lexical, which
caused a fake cache entry to be added to the outer eval's pad. The
second inner eval finds this cached entry, but incorrectly concludes
that the outer eval is in fact an anon sub prototype and issues a
'variable is not available' warning. This is due to this simplistic
definition in pad.c:

#define CvCOMPILED(cv) CvROOT(cv)

This commit adds a new flag, CvEVAL_COMPILED(), to indicate a
fully-compiled EVAL CV. This allows us to work around the limitation.

In an ideal world this would have been fixed instead by making EVAL CVs
first-class citizens with CvROOT() etc, but plenty of stuff seems to
assume otherwise. So I took the path of least resistance.

See https://www.perlmonks.org/?node_id=11158351



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5]

2024-03-22 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/dump_flag
  Home:   https://github.com/Perl/perl5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] a74bf3: add CVf_XS_RCSTACK to dump output

2024-03-22 Thread iabyn via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: a74bf3262c9b6b45c1cec5981d4c1dee9e493fd9
  
https://github.com/Perl/perl5/commit/a74bf3262c9b6b45c1cec5981d4c1dee9e493fd9
  Author: David Mitchell 
  Date:   2024-03-22 (Fri, 22 Mar 2024)

  Changed paths:
M dump.c

  Log Message:
  ---
  add CVf_XS_RCSTACK to dump output

This was missed when I added the flag



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 6522c5: New perldelta for 5.39.10

2024-03-22 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 6522c596a894e041107720990122fb627662aee5
  
https://github.com/Perl/perl5/commit/6522c596a894e041107720990122fb627662aee5
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-22 (Fri, 22 Mar 2024)

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

  Log Message:
  ---
  New perldelta for 5.39.10


  Commit: e37d0248e80396cf27564f6205584d2024df704d
  
https://github.com/Perl/perl5/commit/e37d0248e80396cf27564f6205584d2024df704d
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-22 (Fri, 22 Mar 2024)

  Changed paths:
M Cross/config.sh-arm-linux
M Cross/config.sh-arm-linux-n770
M INSTALL
M META.json
M META.yml
M Porting/config.sh
M Porting/config_H
M Porting/perldelta_template.pod
M README.haiku
M README.macosx
M README.os2
M README.vms
M hints/catamount.sh
M lib/B/Op_private.pm
M patchlevel.h
M plan9/config_sh.sample
M win32/GNUmakefile
M win32/Makefile

  Log Message:
  ---
  Bump version to 5.39.10


  Commit: 26094c47cf27b91b5f883c0fd344ad5477ea38ec
  
https://github.com/Perl/perl5/commit/26094c47cf27b91b5f883c0fd344ad5477ea38ec
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-22 (Fri, 22 Mar 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:
  ---
  Prepare Module::CoreList for 5.39.10


Compare: https://github.com/Perl/perl5/compare/167b7bb18036...26094c47cf27

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 167b7b: Keep using undocumented gcc locale feature

2024-03-21 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 167b7bb18036b7eb9a473b5e644e693edb221340
  
https://github.com/Perl/perl5/commit/167b7bb18036b7eb9a473b5e644e693edb221340
  Author: Karl Williamson 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M locale.c
M perl.h

  Log Message:
  ---
  Keep using undocumented gcc locale feature

Since 5.39.7, this feature has been enabled experimentally by default.
It is similar to querylocale(), found on *BSD systems.  That function
returns the current locale, and was created because this ability is
often required, and POSIX neglected to define anything for this purpose.
I'm told that the next POSIX Standard update will include a function for
this purpose.

I have been using the gcc feature successfully for years in my local
work spaces; we started this experiment to see if it worked generally.
And there have been zero reports of problems with it.

The experiment was designed to refuse to compile in 5.39.10, so as to
make sure it didn't slip into 5.40 without it being explicitly decided
to do so.  Now, the final steps in publishing 5.39.9 include bumping the
release to 5.39.10, and those can't be done with the code as-is.

This commit declares the experiment a success, and enables this feature
non-experimentally as the default, with the ability to turn it off by
passing
-Accflags=-DNO_USE_NL_LOCALE_NAME
to Configure.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] bce688: fix deparse of state sub with empty prototype

2024-03-21 Thread Graham Knop via perl5-changes
  Branch: refs/heads/haarg/fix-deparse-state-sub
  Home:   https://github.com/Perl/perl5
  Commit: bce6881eab90206cbcf279109a4a7a79fe707ab7
  
https://github.com/Perl/perl5/commit/bce6881eab90206cbcf279109a4a7a79fe707ab7
  Author: Graham Knop 
  Date:   2024-03-22 (Fri, 22 Mar 2024)

  Changed paths:
M lib/B/Deparse.pm
M lib/B/Deparse.t

  Log Message:
  ---
  fix deparse of state sub with empty prototype

Fixes #21315



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 3af352: regcomp: OPFAIL is neither SIMPLE nor HASWIDTH

2024-03-21 Thread mauke via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 3af3521ee7bc2cc6405a586f8d9001126af89ed0
  
https://github.com/Perl/perl5/commit/3af3521ee7bc2cc6405a586f8d9001126af89ed0
  Author: Lukas Mai 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M regcomp.c
M t/re/re_tests

  Log Message:
  ---
  regcomp: OPFAIL is neither SIMPLE nor HASWIDTH

This is an extension of fc7dfe8e82a76ba43c, which marked zero-width
constructs as non-SIMPLE.

This change affects synthetic OPFAIL nodes generated by the regclass
optimizer (empty character classes like [^\W\S] should always fail to
match), but which were still marked SIMPLE (indicating they match
exactly one character). If such a character class is under a quantifier,
it would cause regrepeat() to panic at runtime.

Fixes #22094.


  Commit: b559652771c1efeef063dff954c99a89057664d1
  
https://github.com/Perl/perl5/commit/b559652771c1efeef063dff954c99a89057664d1
  Author: Lukas Mai 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp: cosmetic cleanup

- fix grammar error in comment introduced in perl 3.0
- remove duplicate semicola


Compare: https://github.com/Perl/perl5/compare/38bf7049ef87...b559652771c1

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 4017ac: fix deparse of state sub with empty prototype

2024-03-21 Thread Graham Knop via perl5-changes
  Branch: refs/heads/haarg/fix-deparse-state-sub
  Home:   https://github.com/Perl/perl5
  Commit: 4017ac2b743cee48a3ac2564cf7e9d4e8796a7d5
  
https://github.com/Perl/perl5/commit/4017ac2b743cee48a3ac2564cf7e9d4e8796a7d5
  Author: Graham Knop 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M lib/B/Deparse.pm
M lib/B/Deparse.t

  Log Message:
  ---
  fix deparse of state sub with empty prototype

Fixes #21315



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 853535: add CVf_XS_RCSTACK to dump output

2024-03-21 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/dump_flag
  Home:   https://github.com/Perl/perl5
  Commit: 853535ccafe9e80d3b57b4c04b197c25c298a44c
  
https://github.com/Perl/perl5/commit/853535ccafe9e80d3b57b4c04b197c25c298a44c
  Author: David Mitchell 
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
M dump.c

  Log Message:
  ---
  add CVf_XS_RCSTACK to dump output

This was missed when I added the flag



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 38bf70: epigraphs.pod: Add perl 5.39.9's one

2024-03-20 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 38bf7049ef87a44db7a8b39007eb41adef7f9109
  
https://github.com/Perl/perl5/commit/38bf7049ef87a44db7a8b39007eb41adef7f9109
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-20 (Wed, 20 Mar 2024)

  Changed paths:
M Porting/epigraphs.pod

  Log Message:
  ---
  epigraphs.pod: Add perl 5.39.9's one



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 3d2560: release_schedule.pod: mark 5.39.9 as released

2024-03-20 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 3d2560b13816895c83a695fa47005b3943cb69de
  
https://github.com/Perl/perl5/commit/3d2560b13816895c83a695fa47005b3943cb69de
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-20 (Wed, 20 Mar 2024)

  Changed paths:
M Porting/release_schedule.pod

  Log Message:
  ---
  release_schedule.pod: mark 5.39.9 as released



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5]

2024-03-20 Thread Paul Evans via perl5-changes
  Branch: refs/tags/v5.39.9
  Home:   https://github.com/Perl/perl5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] bc258f: Update Module::CoreList for 5.39.9

2024-03-20 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: bc258f4430fc02db4f077ffcb068a7ed4bcecf01
  
https://github.com/Perl/perl5/commit/bc258f4430fc02db4f077ffcb068a7ed4bcecf01
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-20 (Wed, 20 Mar 2024)

  Changed paths:
M dist/Module-CoreList/lib/Module/CoreList.pm

  Log Message:
  ---
  Update Module::CoreList for 5.39.9


  Commit: 0860cc842ec089e91a02cdae7b438c17491b0bab
  
https://github.com/Perl/perl5/commit/0860cc842ec089e91a02cdae7b438c17491b0bab
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-20 (Wed, 20 Mar 2024)

  Changed paths:
M pod/perldelta.pod

  Log Message:
  ---
  perldelta for perl v5.39.9


  Commit: 824a7e0bf8052e62e6913c5fb807a6a8331a2d81
  
https://github.com/Perl/perl5/commit/824a7e0bf8052e62e6913c5fb807a6a8331a2d81
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-20 (Wed, 20 Mar 2024)

  Changed paths:
M pod/perlhist.pod

  Log Message:
  ---
  Add new release to perlhist


  Commit: 1082f1617455b636c606aaab50e250de43059707
  
https://github.com/Perl/perl5/commit/1082f1617455b636c606aaab50e250de43059707
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-20 (Wed, 20 Mar 2024)

  Changed paths:
M dist/Module-CoreList/lib/Module/CoreList.pm
M pod/perldelta.pod
M pod/perlhist.pod

  Log Message:
  ---
  Merge branch 'release-5.39.9' into blead


Compare: https://github.com/Perl/perl5/compare/743293ba242c...1082f1617455

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5]

2024-03-19 Thread Dagfinn Ilmari Mannsåker via perl5-changes
  Branch: refs/heads/named-initialisers-for-mgvtbl
  Home:   https://github.com/Perl/perl5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 625cd9: Use C99 named initialisers in core structs that de...

2024-03-19 Thread Dagfinn Ilmari Mannsåker via perl5-changes
  Branch: refs/heads/named-initialisers-for-mgvtbl
  Home:   https://github.com/Perl/perl5
  Commit: 625cd9821c97aea5e76dab794bf7288a6991d191
  
https://github.com/Perl/perl5/commit/625cd9821c97aea5e76dab794bf7288a6991d191
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
M doio.c
M ext/PerlIO-encoding/encoding.pm
M ext/PerlIO-encoding/encoding.xs
M ext/PerlIO-via/via.pm
M ext/PerlIO-via/via.xs
M ext/XS-APItest/APItest.pm
M ext/XS-APItest/APItest.xs
M op.c

  Log Message:
  ---
  Use C99 named initialisers in core structs that define MGVTBLs

Since most Magic vtables do not provide every function, using C99 named
initialisers allows us to more easily specify which ones are present, so
readers don't have to count commas. Additionally provides a layer of
robustness in case more functions are added in future.


  Commit: 6911fd72a16d90bd5e8c257cb496f3fcd5dc08f6
  
https://github.com/Perl/perl5/commit/6911fd72a16d90bd5e8c257cb496f3fcd5dc08f6
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
M mg_vtable.h
M regen/mg_vtable.pl

  Log Message:
  ---
  Also use C99 named initialisers in mg_vtable.h

These named initialisers are not permitted by C++ compilers using
standards older than C++20, but fortunately even though they appear in
mg_vtable.h and hence perl.h, they are hidden behind an `#ifdef` that is
only defined when compiling `globals.c`, so this should be fine.


  Commit: 93756871545175d4edd5a9d53f76bf98842271f2
  
https://github.com/Perl/perl5/commit/93756871545175d4edd5a9d53f76bf98842271f2
  Author: Dagfinn Ilmari Mannsåker 
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
M mg_vtable.h
M regen/mg_vtable.pl

  Log Message:
  ---
  Use C99 designated array initalisers as well in mg_vtable.h


  Commit: fe2e0d3a3999c8c228b7a13eb253a0c1cd56d3aa
  
https://github.com/Perl/perl5/commit/fe2e0d3a3999c8c228b7a13eb253a0c1cd56d3aa
  Author: Dagfinn Ilmari Mannsåker 
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
M mg_vtable.h
M regen/mg_vtable.pl

  Log Message:
  ---
  Keep trailing comma in PL_magic_vtable(_name)s definitions

C99 allows trailing commas in on struct and table initialisers, so get
rid of the code to avoid it in PL_magic_vtables and adjust the _names
code to match.

We don't add it to the enum, since magic_vtable_max is always the last
element, so there won't be any diff noise from adding new elements
after it.


Compare: https://github.com/Perl/perl5/compare/625cd9821c97%5E...fe2e0d3a3999

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 743293: Revert "Warn about shadowing names when importing ...

2024-03-19 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 743293ba242cb0021cda3c85364f93cc89c3ae3e
  
https://github.com/Perl/perl5/commit/743293ba242cb0021cda3c85364f93cc89c3ae3e
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
M pad.c
M pod/perldiag.pod
M t/lib/warnings/builtin
M t/lib/warnings/pad

  Log Message:
  ---
  Revert "Warn about shadowing names when importing a lexical sub whose name 
matches a package one"

This partly reverts commit 31273fbcec76b8eef204e7d7c8dde2b78d0e0ce5
which was committed in https://github.com/Perl/perl5/pull/21915

It has been found that this warning creates too many warnings from
otherwise-harmless situations, and additionally acts inconsistently with
other behaviours such as lexical variables. In any case it only warns in
the less likely package-then-lexical order, and not in the more likely
lexical-then-package order which was the original intent of the
discussion leading up to its invention.

We decided to remove it 
https://github.com/Perl/perl5/pull/21915#issuecomment-1998021478

I have left the changes to t/op/attrproto.t and t/op/lexsub.t in place
because those were just renames for something that made debugging the
tests confusing. They're not directly related to this warning, so should
remain.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5]

2024-03-19 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/newx_aux
  Home:   https://github.com/Perl/perl5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 4e836f: OP_METHSTART, OP_INITFIELD: use shared mem for aux

2024-03-19 Thread iabyn via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 4e836fe9a8aee77f5e17a5db4b232508755038d6
  
https://github.com/Perl/perl5/commit/4e836fe9a8aee77f5e17a5db4b232508755038d6
  Author: David Mitchell 
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
M class.c
M op.c

  Log Message:
  ---
  OP_METHSTART, OP_INITFIELD: use shared mem for aux

Allocate the aux structure for these two ops using
PerlMemShared_malloc() rather then Newx().

OPs (and auxiliary structures) are shared between threads, and there's
no guarantee that an OP will be freed by the same thread as the one
which created it. Some OSes (Windows IIRC) get upset if memory is
malloc()ed and free()d by different threads, since each thread has a
separate malloc() pool.

Hence we usually use PerlMemShared_malloc()/_free() to allocate such
shared structs. These two recently-added ops were just using Newx().

This commit fixes them.

No tests failures as far as I'm aware - this is more a theoretical thing
where one thread compiles some code, creates a child, then exits. The
child lives on, and when the child finally exits, the aux struct is
freed to the wrong pool.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 6a2327: perldelta for ed37371b34c7f (Tie::File)

2024-03-18 Thread mauke via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 6a2327b68ffd1416197d594607479c827a5f4103
  
https://github.com/Perl/perl5/commit/6a2327b68ffd1416197d594607479c827a5f4103
  Author: Lukas Mai 
  Date:   2024-03-18 (Mon, 18 Mar 2024)

  Changed paths:
M pod/perldelta.pod

  Log Message:
  ---
  perldelta for ed37371b34c7f (Tie::File)



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5]

2024-03-18 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/tied_method_realav
  Home:   https://github.com/Perl/perl5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 047658: Perl_tied_method(): *conditionally* use RC stack

2024-03-18 Thread iabyn via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 0476589cca34e34bc0ca3e11c01cffd9e7c60491
  
https://github.com/Perl/perl5/commit/0476589cca34e34bc0ca3e11c01cffd9e7c60491
  Author: David Mitchell 
  Date:   2024-03-18 (Mon, 18 Mar 2024)

  Changed paths:
M pp_sys.c

  Log Message:
  ---
  Perl_tied_method(): *conditionally* use RC stack

Fixes GH #21784.

Perl_tied_method() is used to call tied methods for filehandles.  One of
its actions is to push a new stackinfo (and hence a new argument stack)
to run the method under. When the  method returns, any returned values
are copied back to to original stack and the stackinfo popped.  But
stackinfos (and the AV pointed to by si_stack) aren't freed at that
point; they are kept around until global destruction, in case they're
needed again.

Before this commit, Perl_tied_method() was incorrectly *always* making
the new stack AvREAL: this should in fact be done only on PERL_RC_STACK
builds.

The effect of this was that, on non-PERL_RC_STACK builds, any temp SVs
created as the return value(s) from the method call, would be left on
the abandoned stack, while the SVs themselves have long since been freed.
Normally this doesn't matter much - the array will be finally emptied
only during global destruction, which doesn't care if an already-freed
SV is attempted to be freed again.

But this was causing Coro to fail, because it maintains a stackinfo
chain per green thread, and manages and frees them itself, so they can
end up being freed before global destruction, triggering an 'Attempt to
free unreferenced scalar' warning.

For completeness, this commit now also resets PL_stack_sp to
PL_stack_base before abandoning the stack, so that that on PERL_RC_STACK
builds, there's no chance of the copied return value SVs being
double-counted later on,



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] c3ebd2: OP_METHSTART, OP_INITFIELD: use shared mem for aux

2024-03-17 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/newx_aux
  Home:   https://github.com/Perl/perl5
  Commit: c3ebd26582351105a25df19e205678ecc87c1708
  
https://github.com/Perl/perl5/commit/c3ebd26582351105a25df19e205678ecc87c1708
  Author: David Mitchell 
  Date:   2024-03-17 (Sun, 17 Mar 2024)

  Changed paths:
M class.c
M op.c

  Log Message:
  ---
  OP_METHSTART, OP_INITFIELD: use shared mem for aux

Allocate the aux structure for these two ops using
PerlMemShared_malloc() rather then Newx().

OPs (and auxiliary structures) are shared between threads, and there's
no guarantee that an OP will be freed by the same thread as the one
which created it. Some OSes (Windows IIRC) get upset if memory is
malloc()ed and free()d by different threads, since each thread has a
separate malloc() pool.

Hence we usually use PerlMemShared_malloc()/_free() to allocate such
shared structs. These two recently-added ops were just using Newx().

This commit fixes them.

No tests failures as far as I'm aware - this is more a theoretical thing
where one thread compiles some code, creates a child, then exits. The
child lives on, and when the child finally exits, the aux struct is
freed to the wrong pool.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 9d0763: Perl_tied_method(): *conditionally* use RC stack

2024-03-17 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/tied_method_realav
  Home:   https://github.com/Perl/perl5
  Commit: 9d0763202f9b83efe08b11749b3dc47ac27b0b6c
  
https://github.com/Perl/perl5/commit/9d0763202f9b83efe08b11749b3dc47ac27b0b6c
  Author: David Mitchell 
  Date:   2024-03-17 (Sun, 17 Mar 2024)

  Changed paths:
M pp_sys.c

  Log Message:
  ---
  Perl_tied_method(): *conditionally* use RC stack

Fixes GH #21784.

Perl_tied_method() is used to call tied methods for filehandles.  One of
its actions is to push a new stackinfo (and hence a new argument stack)
to run the method under. When the  method returns, any returned values
are copied back to to original stack and the stackinfo popped.  But
stackinfos (and the AV pointed to by si_stack) aren't freed at that
point; they are kept around until global destruction, in case they're
needed again.

Before this commit, Perl_tied_method() was incorrectly *always* making
the new stack AvREAL: this should in fact be done only on PERL_RC_STACK
builds.

The effect of this was that, on non-PERL_RC_STACK builds, any temp SVs
created as the return value(s) from the method call, would be left on
the abandoned stack, while the SVs themselves have long since been freed.
Normally this doesn't matter much - the array will be finally emptied
only during global destruction, which doesn't care if an already-freed
SV is attempted to be freed again.

But this was causing Coro to fail, because it maintains a stackinfo
chain per green thread, and manages and frees them itself, so they can
end up being freed before global destruction, triggering an 'Attempt to
free unreferenced scalar' warning.

For completeness, this commit now also resets PL_stack_sp to
PL_stack_base before abandoning the stack, so that that on PERL_RC_STACK
builds, there's no chance of the copied return value SVs being
double-counted later on,



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] d1971b: testsuite.yml: fix ASAN build tests

2024-03-17 Thread Tony Cook via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: d1971b5f57c5a31b1d61d7b2e5816942d69ed954
  
https://github.com/Perl/perl5/commit/d1971b5f57c5a31b1d61d7b2e5816942d69ed954
  Author: Tony Cook 
  Date:   2024-03-18 (Mon, 18 Mar 2024)

  Changed paths:
M .github/workflows/testsuite.yml

  Log Message:
  ---
  testsuite.yml: fix ASAN build tests

This works around actions/runner-images#9491

Apparently a recent Ubuntu update changed the ASLR entropy to
use more bits which is incompatible with ASAN as shipped with
Ubuntu.

This adjusts the entropy bits to be compatible with ASAN.

Thanks to ilmari who found the ticket linked above.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 239af9: OP_METHSTART, OP_INITFIELD: use shared mem for aux

2024-03-17 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/newx_aux
  Home:   https://github.com/Perl/perl5
  Commit: 239af9f3786b2d5623067a25f061f2c2987b209f
  
https://github.com/Perl/perl5/commit/239af9f3786b2d5623067a25f061f2c2987b209f
  Author: David Mitchell 
  Date:   2024-03-17 (Sun, 17 Mar 2024)

  Changed paths:
M class.c
M op.c

  Log Message:
  ---
  OP_METHSTART, OP_INITFIELD: use shared mem for aux

Allocate the aux structure for these two ops using
PerlMemShared_malloc() rather then Newx().

OPs (and auxiliary structures) are shared between threads, and there's
no guarantee that an OP will be freed by the same thread as the one
which created it. Some OSes (Windows IIRC) get upset if memory is
malloc()ed and free()d by different threads, since each thread has a
separate malloc() pool.

Hence we usually use PerlMemShared_malloc()/_free() to allocate such
shared structs. These two recently-added ops were just using Newx().

This commit fixes them.

No tests failures as far as I'm aware - this is more a theoretical thing
where one thread compiles some code, creates a child, then exits. The
child lives on, and when the child finally exits, the aux struct is
freed to the wrong pool.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 150bc2: Perl_tied_method(): *conditionally* use RC stack

2024-03-17 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/tied_method_realav
  Home:   https://github.com/Perl/perl5
  Commit: 150bc24c60188bfb6b67da0c8a36fc75b1a70a25
  
https://github.com/Perl/perl5/commit/150bc24c60188bfb6b67da0c8a36fc75b1a70a25
  Author: David Mitchell 
  Date:   2024-03-17 (Sun, 17 Mar 2024)

  Changed paths:
M pp_sys.c

  Log Message:
  ---
  Perl_tied_method(): *conditionally* use RC stack

Fixes GH #21784.

Perl_tied_method() is used to call tied methods for filehandles.  One of
its actions is to push a new stackinfo (and hence a new argument stack)
to run the method under. When the  method returns, any returned values
are copied back to to original stack and the stackinfo popped.  But
stackinfos (and the AV pointed to by si_stack) aren't freed at that
point; they are kept around until global destruction, in case they're
needed again.

Before this commit, Perl_tied_method() was incorrectly *always* making
the new stack AvREAL: this should in fact be done only on PERL_RC_STACK
builds.

The effect of this was that, on non-PERL_RC_STACK builds, any temp SVs
created as the return value(s) from the method call, would be left on
the abandoned stack, while the SVs themselves have long since been freed.
Normally this doesn't matter much - the array will be finally emptied
only during global destruction, which doesn't care if an already-freed
SV is attempted to be freed again.

But this was causing Coro to fail, because it maintains a stackinfo
chain per green thread, and manages and frees them itself, so they can
end up being freed before global destruction, triggering an 'Attempt to
free unreferenced scalar' warning.

For completeness, this commit now also resets PL_stack_sp to
PL_stack_base before abandoning the stack, so that that on PERL_RC_STACK
builds, there's no chance of the copied return value SVs being
double-counted later on,



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] b65f3b: Perl_tied_method(): *conditionally* use RC stack

2024-03-17 Thread iabyn via perl5-changes
  Branch: refs/heads/davem/tied_method_realav
  Home:   https://github.com/Perl/perl5
  Commit: b65f3b65c9326207e36c55ebc6a140f3230b32f4
  
https://github.com/Perl/perl5/commit/b65f3b65c9326207e36c55ebc6a140f3230b32f4
  Author: David Mitchell 
  Date:   2024-03-17 (Sun, 17 Mar 2024)

  Changed paths:
M pp_sys.c

  Log Message:
  ---
  Perl_tied_method(): *conditionally* use RC stack

Fixes GH #21784.

Perl_tied_method() is used to call tied methods for filehandles.  One of
its actions is to push a new stackinfo (and hence a new argument stack)
to run the method under. When the  method returns, any returned values
are copied back to to original stack and the stackinfo popped.  But
stackinfos (and the AV pointed to by si_stack) aren't freed at that
point; they are kept around until global destruction, in case they're
needed again.

Before this commit, Perl_tied_method() was incorrectly *always* making
the new stack AvREAL: this should in fact be done only on PERL_RC_STACK
builds.

The effect of this was that, on non-PERL_RC_STACK builds, any temp SVs
created as the return value(s) from the method call, would be left on
the abandoned stack, while the SVs themselves have long since been freed.
Normally this doesn't matter much - the array will be finally emptied
only during global destruction, which doesn't care if an already-freed
SV is attempted to be freed again.

But this was causing Coro to fail, because it maintains a stackinfo
chain per green thread, and manages and frees them itself, so they can
end up being freed before global destruction, triggering an 'Attempt to
free unreferenced scalar' warning.

For completeness, this commit now also resets PL_stack_sp to
PL_stack_base before abandoning the stack, so that that on PERL_RC_STACK
builds, there's no chance of the copied return value SVs being
double-counted later on,



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 0e9cc8: autodoc.pl: fix typos

2024-03-14 Thread guangwu via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 0e9cc8e5aaebeef20004deb2c6fdf911e60ba482
  
https://github.com/Perl/perl5/commit/0e9cc8e5aaebeef20004deb2c6fdf911e60ba482
  Author: guoguangwu 
  Date:   2024-03-14 (Thu, 14 Mar 2024)

  Changed paths:
M AUTHORS
M autodoc.pl

  Log Message:
  ---
  autodoc.pl: fix typos

AUTHORs update



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 5b4732: Note that __VA_OPT__ is now standardized

2024-03-13 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 5b473284d0773521c9bd7ebc35adea4a183e8ad0
  
https://github.com/Perl/perl5/commit/5b473284d0773521c9bd7ebc35adea4a183e8ad0
  Author: Karl Williamson 
  Date:   2024-03-13 (Wed, 13 Mar 2024)

  Changed paths:
M pod/perlhacktips.pod

  Log Message:
  ---
  Note that __VA_OPT__ is now standardized

whereas before we said it had never been standardized



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5]

2024-03-13 Thread Yves Orton via perl5-changes
  Branch: refs/heads/yves/hydahy_gh18032
  Home:   https://github.com/Perl/perl5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 216a5a: regcomp.c - Exclude split STRING from /x default m...

2024-03-13 Thread Yves Orton via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 216a5aa8fd93d87eb2e38368010ad8976b69ea20
  
https://github.com/Perl/perl5/commit/216a5aa8fd93d87eb2e38368010ad8976b69ea20
  Author: Richard Leach 
  Date:   2024-03-13 (Wed, 13 Mar 2024)

  Changed paths:
M ext/re/re.pm
M pod/perlfunc.pod
M pod/perlre.pod
M regcomp.c
M t/op/split.t

  Log Message:
  ---
  regcomp.c - Exclude split STRING from /x default modifiers.

We have a magic special case with split STRING where if the STRING
is a single space character we trigger awk emaulation mode, which
causes split to ignore leading whitespace, and to split on \s+.

When default regex modifier support was added to perl we didn't notice
that it doesn't make sense for the /x modifiers to change the behavior
of a STRING pattern in split. STRING patterns are NOT parsed using the
normal pattern parsing rules, for instance "\s+" would split on 's'
characters, not on whitepace. The /x modifier is designed to change the
rules for *pattern* parsing, most notably by adding support for comments
and ignoring whitespace in pattern definitions. This feels to me like a
feature that should only apply to cases where a true pattern is parsed,
such as where \s+ would be treated as the special pattern for matching
whitespace and not a literal 's' character. Historically there was NO way
to create a string pattern with the /x pattern enabled, to enable /x the
string MUST have been fed into a true pattern parsing construct like
qr// m// or s///.

By excluding STRING patterns from /x notation, we ensure that the
special case of awk emulation for C is preserved.

Note that a default /x modifier *does* change the behavior of
C, as the pattern in that case is parsed the same as
C or C.

With changes by Yves Orton

Fixes #18032


  Commit: 947a775b42cec2d05f56f6be7b351cdb149f4ad0
  
https://github.com/Perl/perl5/commit/947a775b42cec2d05f56f6be7b351cdb149f4ad0
  Author: Yves Orton 
  Date:   2024-03-13 (Wed, 13 Mar 2024)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c - move comment to match code

A sub was injected into the code in between the comment and
the sub the comment was about. Move the comment to line up with
the sub.


  Commit: a340a78bb7e15e7251b09433cf6c5624609a30c0
  
https://github.com/Perl/perl5/commit/a340a78bb7e15e7251b09433cf6c5624609a30c0
  Author: Yves Orton 
  Date:   2024-03-13 (Wed, 13 Mar 2024)

  Changed paths:
M embed.fnc
M embed.h
M proto.h
M regcomp.c
M regcomp_study.c

  Log Message:
  ---
  regcomp.c - move some functions back from regcomp_study.c

In an earlier commit I moved various study related functions out of
regcomp.c into regcomp_study.c. Arguably these two functions should not
have been moved, as they are only called from regcomp.c and thus can be
marked as static when they live in that file, which in turn avoids
problems with the re extension where we compile the code a second time
with debugging enabled.


  Commit: ecbf63ae7dd6638fee8184d452ebacf312c3b535
  
https://github.com/Perl/perl5/commit/ecbf63ae7dd6638fee8184d452ebacf312c3b535
  Author: Yves Orton 
  Date:   2024-03-13 (Wed, 13 Mar 2024)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c - zero the pRExC_state structure early in compilation

And initialize various members, especially RExC_mysv1 and RExC_mysv2
as early as possible under debugging.

Under -Uusedl we were ending up with the mysv1 and mysv2 slots set to
random pointers as the structure wasnt zeroed properly, and the
initialization for the temporary sv's wasn't performed correctly, which
then lead to segfaults.

Arguably we should have been using Zero() from the very beginning, as
we have had multiple bugs over the years where we added a member to
the structure but forgot to zero it at the start of compilation. This
change rectifies that and will prevent future oversights.


  Commit: 522fd222429f259e6e14f5f24be3009bc9d5c439
  
https://github.com/Perl/perl5/commit/522fd222429f259e6e14f5f24be3009bc9d5c439
  Author: Yves Orton 
  Date:   2024-03-13 (Wed, 13 Mar 2024)

  Changed paths:
M ext/re/re.pm
M ext/re/re_top.h

  Log Message:
  ---
  ext/re/re_top.h - override some function names when compiling the extension

Otherwise under -Uusedl tests in t/op/split.t may fail or will produce
debugging output when they should not. Argubly this a work-around fix
and we should do something more thorough to ensure that the debgging
regex engine can be built properly under -Uusedl (static extensions)
but for now I think this is good enough.


Compare: https://github.com/Perl/perl5/compare/4d119e96fa1d...522fd222429f

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 4d119e: Fcntl: export File Sealing flags on request

2024-03-12 Thread Richard Leach via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 4d119e96fa1d2fc914987fecf8d14272e4766be7
  
https://github.com/Perl/perl5/commit/4d119e96fa1d2fc914987fecf8d14272e4766be7
  Author: Richard Leach 
  Date:   2024-03-12 (Tue, 12 Mar 2024)

  Changed paths:
M ext/Fcntl/Fcntl.pm
M ext/Fcntl/Makefile.PL

  Log Message:
  ---
  Fcntl: export File Sealing flags on request

On many Unix-like platforms, anonymous files can be created using
memfd_create(2). Where supported, File sealing provides a mechanism
whereby a process can ensure that the underlying shared memory cannot
be unexpectedly tampered with.

This commit adds the flags for this mechanism to the Fcntl module,
from where they can be optionally exported.

See, for example: https://man7.org/linux/man-pages/man2/memfd_create.2.html



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] a8ea39: autodoc.pl: Strip any trailing blanks in output

2024-03-11 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: a8ea39937ae8a2fb20e4ab11742cbc6b5cf82e3a
  
https://github.com/Perl/perl5/commit/a8ea39937ae8a2fb20e4ab11742cbc6b5cf82e3a
  Author: Karl Williamson 
  Date:   2024-03-11 (Mon, 11 Mar 2024)

  Changed paths:
M autodoc.pl

  Log Message:
  ---
  autodoc.pl: Strip any trailing blanks in output


  Commit: dc0509e13cd6fb3e8870d63b7350025a8ba593f8
  
https://github.com/Perl/perl5/commit/dc0509e13cd6fb3e8870d63b7350025a8ba593f8
  Author: Karl Williamson 
  Date:   2024-03-11 (Mon, 11 Mar 2024)

  Changed paths:
M autodoc.pl
M regen/regen_lib.pl

  Log Message:
  ---
  Move sub from autodoc.pl to regen_lib.pl

This allows this columnar formatting to be usable by other regen
scripts.


Compare: https://github.com/Perl/perl5/compare/8ba4821755e5...dc0509e13cd6

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 8ba482: locale_threads.t: Reenable DragonFly testing

2024-03-11 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 8ba4821755e558c4c3e9092fc126a958eeef99a4
  
https://github.com/Perl/perl5/commit/8ba4821755e558c4c3e9092fc126a958eeef99a4
  Author: Karl Williamson 
  Date:   2024-03-11 (Mon, 11 Mar 2024)

  Changed paths:
M lib/locale_threads.t

  Log Message:
  ---
  locale_threads.t: Reenable DragonFly testing

This was instituted by 1d74e8214dd53cf0fa9e8c5aab3e6187685eadcd, but
ae3e9dd0b31e37357f00d0a83f0b3f4a2713f420 should have fixed this.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 3813d3: lib/locale.t:

2024-03-09 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/smoke-me/khw-env
  Home:   https://github.com/Perl/perl5
  Commit: 3813d3f10e3aacfa874645b12c166f0940b9a076
  
https://github.com/Perl/perl5/commit/3813d3f10e3aacfa874645b12c166f0940b9a076
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M lib/locale.t

  Log Message:
  ---
  lib/locale.t:

Fixes #21697.

On some platforms, a locale name is specified in the code page (or
code set) that applies to it, rather than plain ASCII.  Windows, and
hence MingW, is the prime example.

The locale name for a particular Turkish variety found in MingW is
"Turkish_T?.1254" where the question marks represent different
characters that have meaning in the 1254 code page, but would look like
mojibake if I had reproduced their actual values here.

When doing a setlocale() here, if the current code page is incompatible
with the new one, it will fail; if compatible it will succeed.

On my box running MingW, locales are tried out by this test file in
alphabetical order, and the one before this Turkish happens to be Thai,
with a code page of 874.  Apparently 1254 is not compatible with 874, so
switching directly from Thai to Turkish fails.

The solution is to switch into a neutral code page before switching into
one being trialed.  "C" works in this case, and I suspect in all others.


  Commit: 9e354ea46e8e72e583bd41b532317380a8906d3f
  
https://github.com/Perl/perl5/commit/9e354ea46e8e72e583bd41b532317380a8906d3f
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M charclass_invlists.h
M lib/unicore/Makefile
M lib/unicore/mktables
M lib/unicore/uni_keywords.pl
M regcharclass.h
M uni_keywords.h

  Log Message:
  ---
  mktables more verbose


  Commit: fb5e286c73e02ff5da54af50f1c56b29adf03a92
  
https://github.com/Perl/perl5/commit/fb5e286c73e02ff5da54af50f1c56b29adf03a92
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M cpan/Pod-Simple/lib/Pod/Simple/BlackBox.pm

  Log Message:
  ---
  BlackBox dont use rare scripts


  Commit: 427db73893503a5778670c3c2d898877657b15ab
  
https://github.com/Perl/perl5/commit/427db73893503a5778670c3c2d898877657b15ab
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M t/harness

  Log Message:
  ---
  XXX t/harness temp tweaks


  Commit: f701905bfd9b3109b1c681b68d1391b4c7fb6de5
  
https://github.com/Perl/perl5/commit/f701905bfd9b3109b1c681b68d1391b4c7fb6de5
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M t/harness

  Log Message:
  ---
  XXX skip croak.t under sanitizer


  Commit: ab51293d3a3b39ef08e048b10ceba8933e95ad26
  
https://github.com/Perl/perl5/commit/ab51293d3a3b39ef08e048b10ceba8933e95ad26
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M t/porting/bincompat.t

  Log Message:
  ---
  skip bincompat.t


  Commit: f5760379f96c21acb1a4c94f6f74bef3cb45e6f2
  
https://github.com/Perl/perl5/commit/f5760379f96c21acb1a4c94f6f74bef3cb45e6f2
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M t/porting/bincompat.t

  Log Message:
  ---
  Revert "skip bincompat.t"

This reverts commit 559abf36660fef3e16d1cd33dc5aa6ca2202b88c.


  Commit: 34c28e63f9a2e41ff3fd7704603c55a70fb6fb84
  
https://github.com/Perl/perl5/commit/34c28e63f9a2e41ff3fd7704603c55a70fb6fb84
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M t/TEST

  Log Message:
  ---
  Skip cpan testing message


  Commit: c30a1b60031a9b93d1f292fb73f9627edff6671a
  
https://github.com/Perl/perl5/commit/c30a1b60031a9b93d1f292fb73f9627edff6671a
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M perl.h

  Log Message:
  ---
  runconfigure: only usequery with that directory


  Commit: 93b16a8a5bee4c966fbabb198eab707aa658cae5
  
https://github.com/Perl/perl5/commit/93b16a8a5bee4c966fbabb198eab707aa658cae5
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M t/TEST

  Log Message:
  ---
  Also skip non-thread dist testing


  Commit: 13643c653975b5732aa2e77e3bf2a1c8858b602d
  
https://github.com/Perl/perl5/commit/13643c653975b5732aa2e77e3bf2a1c8858b602d
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M cpan/Archive-Tar/t/02_methods.t

  Log Message:
  ---
  XXX skip Archive-Tar because of symlinks


  Commit: 96a84680f7e5de43245d97e6289837a231657d29
  
https://github.com/Perl/perl5/commit/96a84680f7e5de43245d97e6289837a231657d29
  Author: Karl Williamson 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M t/porting/cmp_version.t

  Log Message:
  ---
  XXX skip cmp_version.t b

[Perl/perl5] 93ff35: Fcntl: export File Sealing flags on request (GH#22071

2024-03-09 Thread Richard Leach via perl5-changes
  Branch: refs/heads/smoke-me/hydahy/fcntl_seals
  Home:   https://github.com/Perl/perl5
  Commit: 93ff35ffecdd7cc51f11a8b87ebdd1a92e1e5cdd
  
https://github.com/Perl/perl5/commit/93ff35ffecdd7cc51f11a8b87ebdd1a92e1e5cdd
  Author: Richard Leach 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M ext/Fcntl/Fcntl.pm
M ext/Fcntl/Makefile.PL

  Log Message:
  ---
  Fcntl: export File Sealing flags on request (GH#22071



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] ced66c: regcomp.c - Exclude split STRING from /x default m...

2024-03-09 Thread Yves Orton via perl5-changes
  Branch: refs/heads/yves/hydahy_gh18032
  Home:   https://github.com/Perl/perl5
  Commit: ced66c57ba8dba38ed842e4e9b07308283569de6
  
https://github.com/Perl/perl5/commit/ced66c57ba8dba38ed842e4e9b07308283569de6
  Author: Richard Leach 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M ext/re/re.pm
M pod/perlfunc.pod
M pod/perlre.pod
M regcomp.c
M t/op/split.t

  Log Message:
  ---
  regcomp.c - Exclude split STRING from /x default modifiers.

We have a magic special case with split STRING where if the STRING
is a single space character we trigger awk emaulation mode, which
causes split to ignore leading whitespace, and to split on \s+.

When default regex modifier support was added to perl we didn't notice
that it doesn't make sense for the /x modifiers to change the behavior
of a STRING pattern in split. STRING patterns are NOT parsed using the
normal pattern parsing rules, for instance "\s+" would split on 's'
characters, not on whitepace. The /x modifier is designed to change the
rules for *pattern* parsing, most notably by adding support for comments
and ignoring whitespace in pattern definitions. This feels to me like a
feature that should only apply to cases where a true pattern is parsed,
such as where \s+ would be treated as the special pattern for matching
whitespace and not a literal 's' character. Historically there was NO way
to create a string pattern with the /x pattern enabled, to enable /x the
string MUST have been fed into a true pattern parsing construct like
qr// m// or s///.

By excluding STRING patterns from /x notation, we ensure that the
special case of awk emulation for C is preserved.

Note that a default /x modifier *does* change the behavior of
C, as the pattern in that case is parsed the same as
C or C.

With changes by Yves Orton

Fixes #18032


  Commit: e4ec892374f627ddc9b98e8e74ab489fb5e9f676
  
https://github.com/Perl/perl5/commit/e4ec892374f627ddc9b98e8e74ab489fb5e9f676
  Author: Yves Orton 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c - move comment to match code

A sub was injected into the code in between the comment and
the sub the comment was about. Move the comment to line up with
the sub.


  Commit: caf069d361a29637fac2e18cdbfd0e619a38e2ae
  
https://github.com/Perl/perl5/commit/caf069d361a29637fac2e18cdbfd0e619a38e2ae
  Author: Yves Orton 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M embed.fnc
M embed.h
M proto.h
M regcomp.c
M regcomp_study.c

  Log Message:
  ---
  regcomp.c - move some functions back from regcomp_study.c

In an earlier commit I moved various study related functions out of
regcomp.c into regcomp_study.c. Arguably these two functions should not
have been moved, as they are only called from regcomp.c and thus can be
marked as static when they live in that file, which in turn avoids
problems with the re extension where we compile the code a second time
with debugging enabled.


  Commit: 8eaf57da409aac419b992d7e5befe250d7e9fbc6
  
https://github.com/Perl/perl5/commit/8eaf57da409aac419b992d7e5befe250d7e9fbc6
  Author: Yves Orton 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M regcomp.c

  Log Message:
  ---
  regcomp.c - zero the pRExC_state structure early in compilation

And initialize various members, especially RExC_mysv1 and RExC_mysv2
as early as possible under debugging.

Under -Uusedl we were ending up with the mysv1 and mysv2 slots set to
random pointers as the structure wasnt zeroed properly, and the
initialization for the temporary sv's wasn't performed correctly, which
then lead to segfaults.

Arguably we should have been using Zero() from the very beginning, as
we have had multiple bugs over the years where we added a member to
the structure but forgot to zero it at the start of compilation. This
change rectifies that and will prevent future oversights.


  Commit: fb9291c6339c664b1c6264293bd8bae1cada9eec
  
https://github.com/Perl/perl5/commit/fb9291c6339c664b1c6264293bd8bae1cada9eec
  Author: Yves Orton 
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
M ext/re/re.pm
M ext/re/re_top.h

  Log Message:
  ---
  ext/re/re_top.h - override some function names when compiling the extension

Otherwise under -Uusedl tests in t/op/split.t may fail or will produce
debugging output when they should not. Argubly this a work-around fix
and we should do something more thorough to ensure that the debgging
regex engine can be built properly under -Uusedl (static extensions)
but for now I think this is good enough.


Compare: https://github.com/Perl/perl5/compare/12d9d972e1e6...fb9291c6339c

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 12d9d9: regcomp.c - Exclude split STRING from /x default m...

2024-03-08 Thread Richard Leach via perl5-changes
  Branch: refs/heads/yves/hydahy_gh18032
  Home:   https://github.com/Perl/perl5
  Commit: 12d9d972e1e6d0f79c915e80e43b1fe2619c2538
  
https://github.com/Perl/perl5/commit/12d9d972e1e6d0f79c915e80e43b1fe2619c2538
  Author: Richard Leach 
  Date:   2024-03-08 (Fri, 08 Mar 2024)

  Changed paths:
M ext/re/re.pm
M pod/perlfunc.pod
M pod/perlre.pod
M regcomp.c
M t/op/split.t

  Log Message:
  ---
  regcomp.c - Exclude split STRING from /x default modifiers.

We have a magic special case with split STRING where if the STRING
is a single space character we trigger awk emaulation mode, which
causes split to ignore leading whitespace, and to split on \s+.

When default regex modifier support was added to perl we didn't notice
that it doesn't make sense for the /x modifiers to change the behavior
of a STRING pattern in split. STRING patterns are NOT parsed using the
normal pattern parsing rules, for instance "\s+" would split on 's'
characters, not on whitepace. The /x modifier is designed to change the
rules for *pattern* parsing, most notably by adding support for comments
and ignoring whitespace in pattern definitions. This feels to me like a
feature that should only apply to cases where a true pattern is parsed,
such as where \s+ would be treated as the special pattern for matching
whitespace and not a literal 's' character. Historically there was NO way
to create a string pattern with the /x pattern enabled, to enable /x the
string MUST have been fed into a true pattern parsing construct like
qr// m// or s///.

By excluding STRING patterns from /x notation, we ensure that the
special case of awk emulation for C is preserved.

Note that a default /x modifier *does* change the behavior of
C, as the pattern in that case is parsed the same as
C or C.

With changes by Yves Orton

Fixes #18032



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 1d2f32: Add CI entry for static Perl

2024-03-07 Thread Leon Timmermans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 1d2f32c260fbe7d7fb589c825305450afff68d26
  
https://github.com/Perl/perl5/commit/1d2f32c260fbe7d7fb589c825305450afff68d26
  Author: Leon Timmermans 
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
M .github/workflows/testsuite.yml

  Log Message:
  ---
  Add CI entry for static Perl



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] ff74e3: Preserve split " " behaviour when whitespace modif...

2024-03-07 Thread Richard Leach via perl5-changes
  Branch: refs/heads/yves/hydahy_gh18032
  Home:   https://github.com/Perl/perl5
  Commit: ff74e3ca7eb82a4ac2ea0f19de0b98ec656515eb
  
https://github.com/Perl/perl5/commit/ff74e3ca7eb82a4ac2ea0f19de0b98ec656515eb
  Author: Richard Leach 
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
M ext/re/re.pm
M pod/perlfunc.pod
M pod/perlre.pod
M regcomp.c
M t/op/split.t

  Log Message:
  ---
  Preserve split " " behaviour when whitespace modifiers are present

Prior to this commit, the " " pattern would be collapsed into
the empty "" pattern if the split was within scope of `use re`
whitespace modifiers. Since this split pattern is documented
as being a special case, that behaviour is undesirable.

With changes by Yves Orton

Fixes #18032



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 5236da: Preserve split " " behaviour when whitespace modif...

2024-03-07 Thread Richard Leach via perl5-changes
  Branch: refs/heads/yves/hydahy_gh18032
  Home:   https://github.com/Perl/perl5
  Commit: 5236da55bb062fe5d1783d0983f5abb69d599182
  
https://github.com/Perl/perl5/commit/5236da55bb062fe5d1783d0983f5abb69d599182
  Author: Richard Leach 
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
M ext/re/re.pm
M pod/perlfunc.pod
M pod/perlre.pod
M regcomp.c
M t/op/split.t

  Log Message:
  ---
  Preserve split " " behaviour when whitespace modifiers are present

Prior to this commit, the " " pattern would be collapsed into
the empty "" pattern if the split was within scope of `use re`
whitespace modifiers. Since this split pattern is documented
as being a special case, that behaviour is undesirable.

With changes by Yves Orton

Fixes #18032



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 81ae79: Preserve split " " behaviour when whitespace modif...

2024-03-07 Thread Richard Leach via perl5-changes
  Branch: refs/heads/yves/hydahy_gh18032
  Home:   https://github.com/Perl/perl5
  Commit: 81ae79784712d394a12444ac72a0d3dbb07fa2f9
  
https://github.com/Perl/perl5/commit/81ae79784712d394a12444ac72a0d3dbb07fa2f9
  Author: Richard Leach 
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
M ext/re/re.pm
M pod/perlfunc.pod
M pod/perlre.pod
M regcomp.c
M t/op/split.t

  Log Message:
  ---
  Preserve split " " behaviour when whitespace modifiers are present

Prior to this commit, the " " pattern would be collapsed into
the empty "" pattern if the split was within scope of `use re`
whitespace modifiers. Since this split pattern is documented
as being a special case, that behaviour is undesirable.

With changes by Yves Orton

Fixes #18032



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 06ec88: Preserve split " " behaviour when whitespace modif...

2024-03-07 Thread Richard Leach via perl5-changes
  Branch: refs/heads/yves/hydahy_gh18032
  Home:   https://github.com/Perl/perl5
  Commit: 06ec88a931b1e46a711b53ea8280316c8541caf8
  
https://github.com/Perl/perl5/commit/06ec88a931b1e46a711b53ea8280316c8541caf8
  Author: Richard Leach 
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
M regcomp.c
M t/op/split.t

  Log Message:
  ---
  Preserve split " " behaviour when whitespace modifiers are present

Prior to this commit, the " " pattern would be collapsed into
the empty "" pattern if the split was within scope of `use re`
whitespace modifiers. Since this split pattern is documented
as being a special case, that behaviour is undesirable.

With changes by Yves Orton

Fixes #18032



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 5bf3e1: release_schedule.pod: Paul Evans volunteers to rel...

2024-03-07 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 5bf3e10566acc81b77c64c51b77459ebc1292e25
  
https://github.com/Perl/perl5/commit/5bf3e10566acc81b77c64c51b77459ebc1292e25
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
M Porting/release_schedule.pod

  Log Message:
  ---
  release_schedule.pod: Paul Evans volunteers to release 5.39.9



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] f9e60a: mktables: Fix indentation on a line

2024-03-07 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: f9e60abaf34ea14f01b2d4283245cc80892b2420
  
https://github.com/Perl/perl5/commit/f9e60abaf34ea14f01b2d4283245cc80892b2420
  Author: Karl Williamson 
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
M charclass_invlists.h
M lib/unicore/mktables
M lib/unicore/uni_keywords.pl
M regcharclass.h
M uni_keywords.h

  Log Message:
  ---
  mktables: Fix indentation on a line


  Commit: 79944a7633a57f74dcc5d0b565c268ca9bf54cc1
  
https://github.com/Perl/perl5/commit/79944a7633a57f74dcc5d0b565c268ca9bf54cc1
  Author: Karl Williamson 
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
M regen/reentr.pl

  Log Message:
  ---
  regen/reentr.pl: Remove duplicate line

Only need to set a hash entry once to the same value


Compare: https://github.com/Perl/perl5/compare/9213b22726ee...79944a7633a5

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 9213b2: Silence compilation warnings (PR 21925).

2024-03-05 Thread Tony Cook via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 9213b22726eeed2117a341ff34d7f0eadeb734c3
  
https://github.com/Perl/perl5/commit/9213b22726eeed2117a341ff34d7f0eadeb734c3
  Author: sisyphus 
  Date:   2024-03-06 (Wed, 06 Mar 2024)

  Changed paths:
M win32/win32.c

  Log Message:
  ---
  Silence compilation warnings (PR 21925).



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 4870fd: Remove the tombstone-related code from pad.h + pad.c

2024-03-05 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 4870fd2e1aacb81b8c21021c5f89e0b612e637f2
  
https://github.com/Perl/perl5/commit/4870fd2e1aacb81b8c21021c5f89e0b612e637f2
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-06 (Wed, 06 Mar 2024)

  Changed paths:
M pad.c
M pad.h

  Log Message:
  ---
  Remove the tombstone-related code from pad.h + pad.c

This was a short-lived experimental feature intended to implement
removal of lexical symbols, in order to provide syntax like
`no builtin ...` or to remove implied imported builtins on a change of
prevailing `use VERSION`. The model of removing a lexical has proven to
be too subtle and complex to implement as well as raising various
awkward questions about the semantics, so we decided to remove it again
in Perl 5.39.8. There is now no longer any code that uses
PADNAMEf_TOMBSTONE.

As PADNAMEf_TOMBSTONE was only added in earlier in the 5.39.x developent
series, there is no need to retain the constants in .h files for
compatibility or to reserve the numbers for them. They have never
appeared in a stable release of Perl.


  Commit: f8000c6adb280b7624db806da6dde19d2315f0d6
  
https://github.com/Perl/perl5/commit/f8000c6adb280b7624db806da6dde19d2315f0d6
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-06 (Wed, 06 Mar 2024)

  Changed paths:
M Porting/deparse-skips.txt

  Log Message:
  ---
  deparse-skips.txt: No need to skip lib/builtin.t now that PADNAMEf_TOMBSTONE 
is gone


Compare: https://github.com/Perl/perl5/compare/c3de8c084043...f8000c6adb28

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] c3de8c: IO::Zlib: sync with CPAN version 1.15

2024-03-04 Thread Tom Hughes via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: c3de8c0840433e0c9837d0e9032adbf466e11ca8
  
https://github.com/Perl/perl5/commit/c3de8c0840433e0c9837d0e9032adbf466e11ca8
  Author: Tom Hughes 
  Date:   2024-03-04 (Mon, 04 Mar 2024)

  Changed paths:
M Porting/Maintainers.pl
M cpan/IO-Zlib/Zlib.pm

  Log Message:
  ---
  IO::Zlib: sync with CPAN version 1.15

No functional changes.  $VERSION incremented as part of update of CPAN
distribution. -- committer



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 98ac93: Don't warn about subsequent use VERSION if it requ...

2024-03-04 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 98ac9397d0ef07509e25884c73d93d933d9c5e82
  
https://github.com/Perl/perl5/commit/98ac9397d0ef07509e25884c73d93d933d9c5e82
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-04 (Mon, 04 Mar 2024)

  Changed paths:
M op.c
M t/lib/warnings/op

  Log Message:
  ---
  Don't warn about subsequent use VERSION if it requests the same version number


  Commit: 92e225f5fe8bee2b5a6ecfe7d3a6c873c9e55963
  
https://github.com/Perl/perl5/commit/92e225f5fe8bee2b5a6ecfe7d3a6c873c9e55963
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-04 (Mon, 04 Mar 2024)

  Changed paths:
M op.c
M pod/perldeprecation.pod
M pod/perldiag.pod
M t/lib/feature/implicit
M t/lib/warnings/op
M t/lib/warnings/pp_ctl

  Log Message:
  ---
  Better wording of deprecation message and documentation


Compare: https://github.com/Perl/perl5/compare/bd795a9f5535...92e225f5fe8b

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] bd795a: Time::HiRes: show import of CLOCK_REALTIME

2024-03-03 Thread James E Keenan via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: bd795a9f5535c5d98e4d777cf2a1148fb02f8a04
  
https://github.com/Perl/perl5/commit/bd795a9f5535c5d98e4d777cf2a1148fb02f8a04
  Author: James E Keenan 
  Date:   2024-03-03 (Sun, 03 Mar 2024)

  Changed paths:
M dist/Time-HiRes/HiRes.pm

  Log Message:
  ---
  Time::HiRes: show import of CLOCK_REALTIME

Fixes #22060



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 2f74b6: perl.h: Remove redundant preprocessor directive

2024-03-03 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 2f74b669c300e3b7241c0f3d668729780f7085f4
  
https://github.com/Perl/perl5/commit/2f74b669c300e3b7241c0f3d668729780f7085f4
  Author: Karl Williamson 
  Date:   2024-03-03 (Sun, 03 Mar 2024)

  Changed paths:
M perl.h

  Log Message:
  ---
  perl.h: Remove redundant preprocessor directive

We already know we are in threads here; simplify by not testing again



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] c3bb8a: perldelta.pod: Add entry for new logical xor operator

2024-03-01 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: c3bb8a84722517e40199c1594a9340b86103e837
  
https://github.com/Perl/perl5/commit/c3bb8a84722517e40199c1594a9340b86103e837
  Author: Paul "LeoNerd" Evans 
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
M pod/perldelta.pod

  Log Message:
  ---
  perldelta.pod: Add entry for new logical xor operator



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] abac09: bump $DynaLoader::VERSION

2024-02-28 Thread Tony Cook via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: abac0992d7f83a488e5ef71af60b424cd52d47e1
  
https://github.com/Perl/perl5/commit/abac0992d7f83a488e5ef71af60b424cd52d47e1
  Author: Tony Cook 
  Date:   2024-02-29 (Thu, 29 Feb 2024)

  Changed paths:
M ext/DynaLoader/DynaLoader_pm.PL

  Log Message:
  ---
  bump $DynaLoader::VERSION



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] d6e802: Create a new logical xor operator, spelled `^^`

2024-02-28 Thread Paul Evans via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: d6e802ac91218e636dd18a9be0e1bf9b8bc40abe
  
https://github.com/Perl/perl5/commit/d6e802ac91218e636dd18a9be0e1bf9b8bc40abe
  Author: Martijn Lievaart 
  Date:   2024-02-29 (Thu, 29 Feb 2024)

  Changed paths:
M perly.act
M perly.h
M perly.tab
M perly.y
M pod/perlop.pod
M t/op/lop.t
M toke.c

  Log Message:
  ---
  Create a new logical xor operator, spelled `^^`

Previously, the low-precedence `xor` operator did not have a
higher-precedence logical variant, as compared `or` vs `||` and
`and` vs `&&`. This PR adds such an operator syntax, completing the
set.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] d3f42b: DynaLoader: dl_dyld.xs: don't undef bool

2024-02-28 Thread Tony Cook via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: d3f42b8d3823ce40f4f62758562ad4c02ffa3e27
  
https://github.com/Perl/perl5/commit/d3f42b8d3823ce40f4f62758562ad4c02ffa3e27
  Author: Tony Cook 
  Date:   2024-02-29 (Thu, 29 Feb 2024)

  Changed paths:
M ext/DynaLoader/dl_dyld.xs

  Log Message:
  ---
  DynaLoader: dl_dyld.xs: don't undef bool

I expect this was added when we added our own bool, and before
we used bool so liberally ourselves.  Now dl_dyld.xs fails to
compile, since MY_CXT_CLONE indirectly uses UNLIKELY() which
casts to bool.

Tested locally with:

  ./Configure -des -Dusedevel -Dusethreads -Ddlsrc=dl_dyld.xs

on a modern Darwin, which failed before this change and builds
after.

Based on work done by Sevan Janiyan in #21751.

Fixes #21751



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] babcc2: `README.haiku`: Update dead link

2024-02-28 Thread Elvin Aslanov via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: babcc2d8d79c3b755fc83e10d5ea599aff428237
  
https://github.com/Perl/perl5/commit/babcc2d8d79c3b755fc83e10d5ea599aff428237
  Author: Elvin Aslanov 
  Date:   2024-02-28 (Wed, 28 Feb 2024)

  Changed paths:
M README.haiku

  Log Message:
  ---
  `README.haiku`: Update dead link

http://ports.haiku-files.org is NXDOMAIN

Perl is here:
https://github.com/haikuports/haikuports/blob/master/dev-lang/perl/perl-5.32.1.recipe



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 6da402: Modernise & simplify bytes.pm

2024-02-28 Thread James Raspass via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 6da4021a52da85dc8755b9c2798bc9f13f9d10d1
  
https://github.com/Perl/perl5/commit/6da4021a52da85dc8755b9c2798bc9f13f9d10d1
  Author: James Raspass 
  Date:   2024-02-28 (Wed, 28 Feb 2024)

  Changed paths:
M MANIFEST
M Porting/Maintainers.pl
M lib/bytes.pm
M lib/bytes.t
R lib/bytes_heavy.pl

  Log Message:
  ---
  Modernise & simplify bytes.pm



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] dee9d7: Add CI entry for static Perl

2024-02-28 Thread Leon Timmermans via perl5-changes
  Branch: refs/heads/leont/static-test
  Home:   https://github.com/Perl/perl5
  Commit: dee9d7d105de331448bb9880b16484149e261466
  
https://github.com/Perl/perl5/commit/dee9d7d105de331448bb9880b16484149e261466
  Author: Leon Timmermans 
  Date:   2024-02-28 (Wed, 28 Feb 2024)

  Changed paths:
M .github/workflows/testsuite.yml

  Log Message:
  ---
  Add CI entry for static Perl



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


<    6   7   8   9   10   11   12   13   14   15   >