[Perl/perl5] 871702: [doc] perlnewmod: Move links from HTTP to HTTPS

2022-10-03 Thread Elvin Aslanov via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 871702baa1fa0296622b298964fe2ff34f370d98
  
https://github.com/Perl/perl5/commit/871702baa1fa0296622b298964fe2ff34f370d98
  Author: Elvin Aslanov 
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
M pod/perlnewmod.pod

  Log Message:
  ---
  [doc] perlnewmod: Move links from HTTP to HTTPS

Convert links to MetaCPAN, PAUSE, and CPAN to HTTPS.

They will redirect anyway.




[Perl/perl5] a444ce: sv.c: Move some code; consolidate

2022-10-03 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/smoke-me/khw-attributes
  Home:   https://github.com/Perl/perl5
  Commit: a444ce4a443513bfb72afc94c9b02a7d4fbeb1b7
  
https://github.com/Perl/perl5/commit/a444ce4a443513bfb72afc94c9b02a7d4fbeb1b7
  Author: Karl Williamson 
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
M sv.c

  Log Message:
  ---
  sv.c: Move some code; consolidate

This moves the code for cloning the locale variables to a single place,
consolidating some that had the same cpp directives.  It showed that one
variable was cloned twice; the redundant one is now removed.


  Commit: 951401808d5246ab4dd6b3d09db8dad8321479e9
  
https://github.com/Perl/perl5/commit/951401808d5246ab4dd6b3d09db8dad8321479e9
  Author: Karl Williamson 
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
M sv.c

  Log Message:
  ---
  sv.c: Clone interpreter with locale set to C

A thread is supposed to start with the locale set to the C locale.  We
were duping the parent values, and later overriding.  Better to set to C
from the beginning.


  Commit: b3a6083cf30aacfba161030915e2907ff9213dc5
  
https://github.com/Perl/perl5/commit/b3a6083cf30aacfba161030915e2907ff9213dc5
  Author: Karl Williamson 
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
M sv.c

  Log Message:
  ---
  sv.c: Set phase to CONSTRUCT on interpreter being cloned

So far this hadn't been an issue, but it will be for a future commit.


  Commit: 3e7efd444621836dbbce87795b6226ca5acfea2b
  
https://github.com/Perl/perl5/commit/3e7efd444621836dbbce87795b6226ca5acfea2b
  Author: Karl Williamson 
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
M perl.h

  Log Message:
  ---
  Don't #define USE_THREAD_SAFE LOCALE unless threaded

If there aren't threads, yes locales are trivially thread-safe, but
the code that gets executed to make them so doesn't need to get
compiled, and that is controlled by this #define.


  Commit: 74c95074cf94e10eb11c4aedc3dd84691ec1f87c
  
https://github.com/Perl/perl5/commit/74c95074cf94e10eb11c4aedc3dd84691ec1f87c
  Author: Karl Williamson 
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
M makedef.pl
M perl.h

  Log Message:
  ---
  Clean up perl.h/makedef.pl common logic

This has gotten two twisty little mazy over time.  Clean it up, add
comments, and make sure the logic is the same on both.


  Commit: b4b117200e149afa4490fac64d71ba9cd24bbcdc
  
https://github.com/Perl/perl5/commit/b4b117200e149afa4490fac64d71ba9cd24bbcdc
  Author: Karl Williamson 
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
M embedvar.h
M intrpvar.h
M locale.c
M makedef.pl
M perl.c
M perl.h
M sv.c

  Log Message:
  ---
  locale: Create special variable to hold current LC_ALL

Some configurations require us to store the current locale for each
category.  Prior to this commit, this was done in the array
PL_curlocales, with the entry for LC_ALL being in the highest element.

Future commits will need just the value for LC_ALL in some other
configurations, without needing the rest of the array.  This commit
splits off the LC_ALL element into its own per-interpreter variable to
accommodate those.  It always had to have special handling anyway beyond
the rest of the array elements,


  Commit: 2b5690eacff0eba313a0dca49a52351b230dbf18
  
https://github.com/Perl/perl5/commit/2b5690eacff0eba313a0dca49a52351b230dbf18
  Author: Karl Williamson 
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
M embed.fnc
M embed.h
M locale.c
M proto.h

  Log Message:
  ---
  locale.c: Compile display fcn under more circumstances

This is in preparation for it to be used in more instances in future
commits.  It uses a symbol that won't be defined until those commits.


  Commit: cdd581f6ccf9f149be1860d785bc26513d39d75a
  
https://github.com/Perl/perl5/commit/cdd581f6ccf9f149be1860d785bc26513d39d75a
  Author: Karl Williamson 
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
M locale.c

  Log Message:
  ---
  locale.c: Do uselocale() earlier in init process

This prevents some unnecessary steps, that the next commit would turn
into memory leaks.


  Commit: 3d6d6d28547ec2eab0344632dd1c8ae528e503da
  
https://github.com/Perl/perl5/commit/3d6d6d28547ec2eab0344632dd1c8ae528e503da
  Author: Karl Williamson 
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
M embedvar.h
M intrpvar.h
M locale.c
M makedef.pl
M perl.c
M sv.c

  Log Message:
  ---
  Some locale operations need to be done in proper thread

This is a step in solving #20155

The POSIX 2008 locale API introduces per-thread locales.  But the
previous global locale system is retained, probably for backward
compatibility.

The POSIX 2008 interface causes memory to be malloc'd that needs to be
freed.  In order to do this, the caller must first stop using that
memory, by switching to