This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Nicholas Clark [Tue, 22 Jun 2021 12:52:13 +0000 (12:52 +0000)]
Add a "Show Config" step to the GitHub CI config.
Hopefully this will make it easier to figure out the cause of test failures.
James E Keenan [Wed, 23 Jun 2021 16:31:58 +0000 (16:31 +0000)]
Correct grammar/spelling problems
As spotted by Tux
Sergey Poznyakoff [Wed, 23 Jun 2021 12:31:42 +0000 (15:31 +0300)]
Fix definition of ITEM_NOT_FOUND for pre-1.13 versions.
Sergey Poznyakoff [Wed, 23 Jun 2021 11:24:47 +0000 (14:24 +0300)]
Raise version number in ext/GDBM_File/GDBM_File.pm
Sergey Poznyakoff [Wed, 23 Jun 2021 07:26:50 +0000 (10:26 +0300)]
Fix GDBM_File to compile with version 1.20 and earlier
* ext/GDBM_File/GDBM_File.xs (ITEM_NOT_FOUND): Define conditionally,
depending on the GDBM_VERSION_MAJOR and GDBM_VERSION_MINOR.
Don't assume GDBM_ITEM_NOT_FOUND is a define (it isn't since
gdbm commit
d3e27957).
Nicholas Clark [Wed, 23 Jun 2021 06:10:34 +0000 (06:10 +0000)]
Change the "New issue" page to point to the RFC process.
Tony Cook [Wed, 23 Jun 2021 00:55:07 +0000 (10:55 +1000)]
Tony Cook [Wed, 23 Jun 2021 00:45:23 +0000 (10:45 +1000)]
Tony Cook [Wed, 24 Mar 2021 01:02:54 +0000 (12:02 +1100)]
fix magic and upgraded SV handling for setsockopt()'s OPTVAL
The code here checked SV flags before fetching magic, potentially
getting confused if magic fetched changed flags.
This also fixes handling for upgraded SVs, but I'm not sure that can
be tested sufficiently portably.
Tony Cook [Tue, 22 Jun 2021 06:19:23 +0000 (16:19 +1000)]
perl5db: add tests for v command
Tony Cook [Tue, 22 Jun 2021 05:41:57 +0000 (15:41 +1000)]
bump perl5db.pl $VERSION to 1.61
Atsushi SUGAWARA [Thu, 17 Jun 2021 00:50:36 +0000 (09:50 +0900)]
fix comment.
Atsushi SUGAWARA [Thu, 17 Jun 2021 00:47:48 +0000 (09:47 +0900)]
lib/perl5db.pl: cmd_l() no longer exists.
Subroutine cmd_l() no longer exists.
Now we should call cmd_l_main().
James E Keenan [Mon, 21 Jun 2021 23:26:45 +0000 (19:26 -0400)]
Correct typo in inline comment
James E Keenan [Sun, 20 Jun 2021 14:29:44 +0000 (14:29 +0000)]
Merge branch 'leont/xs_dynaloader' into blead
Todd Rinaldo [Thu, 8 Oct 2020 04:33:57 +0000 (23:33 -0500)]
Drop support for XSLoader below 5.6
Now we're using our, there's no value to attempting to support
versions below 5.6.
Leon Timmermans [Sat, 20 Mar 2021 00:20:15 +0000 (01:20 +0100)]
Make DynaLoader strict-safe
Leon Timmermans [Fri, 19 Mar 2021 19:33:14 +0000 (20:33 +0100)]
Add warnings to DynaLoader/Makefile.PL
Leon Timmermans [Fri, 19 Mar 2021 19:32:52 +0000 (20:32 +0100)]
Add warnings to DynaLoader.t
Leon Timmermans [Fri, 19 Mar 2021 19:32:32 +0000 (20:32 +0100)]
Add strict to XSLoader_pm.PL
Leon Timmermans [Fri, 19 Mar 2021 19:32:11 +0000 (20:32 +0100)]
Add warnings to XSLoader.t
Thibault DUPONCHELLE [Thu, 17 Jun 2021 07:58:41 +0000 (09:58 +0200)]
Fix link for synology
Thibault DUPONCHELLE [Thu, 17 Jun 2021 07:05:51 +0000 (09:05 +0200)]
No https for std.dkuug.dk
Thibault DUPONCHELLE [Thu, 17 Jun 2021 05:48:44 +0000 (07:48 +0200)]
Fix some links about ebcdic
Max Maischein [Sun, 20 Jun 2021 13:48:42 +0000 (15:48 +0200)]
Fix whitespace in perldelta.pod
Karl Williamson [Sat, 19 Jun 2021 17:45:08 +0000 (11:45 -0600)]
Update perldelta
with changes khw made for 5.35.1 that may be interesting externally.
Max Maischein [Sun, 20 Jun 2021 13:31:17 +0000 (15:31 +0200)]
Update Module::CoreList for 5.35.2
Max Maischein [Sun, 20 Jun 2021 13:25:28 +0000 (15:25 +0200)]
Bump the perl version in various places for 5.35.2
Max Maischein [Sun, 20 Jun 2021 13:12:55 +0000 (15:12 +0200)]
new perldelta for 5.35.2
Max Maischein [Sun, 20 Jun 2021 13:05:29 +0000 (15:05 +0200)]
Tick the entry for 5.35.1 in release_schedule.pod
Max Maischein [Sun, 20 Jun 2021 13:04:14 +0000 (15:04 +0200)]
Update epigraphs.pod
Max Maischein [Sun, 20 Jun 2021 12:57:00 +0000 (14:57 +0200)]
Merge branch 'release-5.35.1' into blead
# Conflicts:
# pod/perldelta.pod
Max Maischein [Sun, 20 Jun 2021 11:38:43 +0000 (13:38 +0200)]
add new release to perlhist
Max Maischein [Sun, 20 Jun 2021 11:28:00 +0000 (13:28 +0200)]
Update perldelta
Max Maischein [Sun, 20 Jun 2021 10:55:13 +0000 (12:55 +0200)]
Update Module::CoreList for 5.35.1
Karl Williamson [Sat, 19 Jun 2021 17:45:08 +0000 (11:45 -0600)]
Update perldelta
with changes khw made for 5.35.1 that may be interesting externally.
Karl Williamson [Sat, 19 Jun 2021 17:38:35 +0000 (11:38 -0600)]
perlapio: PerlIO_reopen() doesn't take thread context
Paul "LeoNerd" Evans [Tue, 15 Jun 2021 00:27:36 +0000 (01:27 +0100)]
Regresison test that multiple statements in 'try' also yields a result
Paul "LeoNerd" Evans [Mon, 14 Jun 2021 23:29:36 +0000 (00:29 +0100)]
scalarseq() should not put an OP_ENTER kid into scalar context (fixes #18855)
James E Keenan [Thu, 17 Jun 2021 12:44:34 +0000 (12:44 +0000)]
Merge branch 'thibaultduponchelle-fix_links' into blead
Karl Williamson [Wed, 19 Aug 2020 19:21:53 +0000 (13:21 -0600)]
MANIFEST: Add comment
James E Keenan [Thu, 10 Jun 2021 01:05:04 +0000 (01:05 +0000)]
Silence one "non-numeric" warning
As suggested by Tom Hukins.
For: https://github.com/Perl/perl5/issues/18244
Paul "LeoNerd" Evans [Tue, 15 Jun 2021 13:29:15 +0000 (14:29 +0100)]
Rename scalarseq() to a somewhat more meaningful voidnonfinal()
Thibault DUPONCHELLE [Thu, 17 Jun 2021 06:26:33 +0000 (08:26 +0200)]
Update UCD version. Remove changes to cpan Encode. Regen
Thibault DUPONCHELLE [Thu, 17 Jun 2021 05:20:07 +0000 (07:20 +0200)]
blogs.perl.org is not https
Thibault DUPONCHELLE [Wed, 16 Jun 2021 17:11:49 +0000 (19:11 +0200)]
Fix several unicode.org links
Thibault DUPONCHELLE [Wed, 16 Jun 2021 17:04:59 +0000 (19:04 +0200)]
Fix link for unicode faq
Thibault DUPONCHELLE [Wed, 16 Jun 2021 17:00:45 +0000 (19:00 +0200)]
pmd/cpd moved to GitHub and GitHub pages
Karl Williamson [Wed, 19 Aug 2020 19:21:53 +0000 (13:21 -0600)]
MANIFEST: Add comment
James E Keenan [Wed, 16 Jun 2021 19:51:56 +0000 (19:51 +0000)]
Merge branch 'gh-18244-freebsd-osvers-
20210609' into blead
James E Keenan [Thu, 10 Jun 2021 01:05:04 +0000 (01:05 +0000)]
Silence one "non-numeric" warning
As suggested by Tom Hukins.
For: https://github.com/Perl/perl5/issues/18244
Paul "LeoNerd" Evans [Tue, 15 Jun 2021 13:29:15 +0000 (14:29 +0100)]
Rename scalarseq() to a somewhat more meaningful voidnonfinal()
Thibault DUPONCHELLE [Wed, 16 Jun 2021 16:49:32 +0000 (18:49 +0200)]
Fix perlbuzz link
H.Merijn Brand [Wed, 16 Jun 2021 06:30:15 +0000 (08:30 +0200)]
Disambiguate what user sees in interactive Configure
User should expect to see configuration questions spelled 'UTF-8', not
'UTF8' (even if we store information internally or in config.sh without
the hyphen).
Correct user prompts accordingly.
For: #18844
https://github.com/Perl/perl5/pull/18870 by @jkeenan
Karl Williamson [Wed, 19 Aug 2020 03:13:42 +0000 (21:13 -0600)]
perl.h: Pay attention to if can have non-int bitfields
Karl Williamson [Sun, 30 May 2021 17:55:33 +0000 (11:55 -0600)]
Fix ASSUME definition
Commit
5d5b9c460e2a06563d2b5e35a1a79991460696eb fixed the definition of
ASSUME for some purposes, but broke it on Windows. This commit should
fix that.
Felipe Gasper [Tue, 15 Jun 2021 04:25:38 +0000 (00:25 -0400)]
Fix spelling: precede
Matthew Horsfall [Mon, 14 Jun 2021 12:56:53 +0000 (08:56 -0400)]
Add perldelta entry try/catch deparsing fix -
846e32ebef
Matthew Horsfall [Thu, 10 Jun 2021 19:58:47 +0000 (15:58 -0400)]
B::Deparse: Handle try/catch when catch has an ENTER/LEAVE pair
Hugo van der Sanden [Tue, 1 Jun 2021 14:06:04 +0000 (15:06 +0100)]
regcomp.c: comments
Comment change suggestions from @hvds in PR #18835.
Karl Williamson [Mon, 31 May 2021 21:38:21 +0000 (15:38 -0600)]
regcomp.c: White-space only
My attempt to insulate from the leading tab removal the year-old commits
finally pushed as
77a6d54c0deb1165b37dcf11c21cd334ae2579bb and
403d7eb3e4320188571cf61b9dab62ff10799f49 failed miserably.
I spent a bunch of time sorting it all out, and this is the result.
Ricardo Signes [Sun, 13 Jun 2021 15:22:27 +0000 (11:22 -0400)]
perlgov: re-alphabetize the name list
Ricardo Signes [Sat, 12 Jun 2021 16:22:11 +0000 (12:22 -0400)]
use cpan.org, not ftp.funet.fi, to check the CPAN
Ricardo Signes [Sat, 12 Jun 2021 16:21:53 +0000 (12:21 -0400)]
CPAN mirror list: stop building one
James E Keenan [Sun, 13 Jun 2021 13:11:56 +0000 (13:11 +0000)]
perldelta entry for 52f0602 (IO upgrade)
James E Keenan [Sun, 13 Jun 2021 12:51:25 +0000 (12:51 +0000)]
perldelta entry for 1c1bafd (Unicode-Collate upgrade)
Max Maischein [Sun, 13 Jun 2021 08:27:27 +0000 (10:27 +0200)]
Update Socket from CPAN to 2.032
Karl Williamson [Sat, 5 Jun 2021 14:33:25 +0000 (08:33 -0600)]
Configure: apply recent metaconfig changes
Several new probes have been added.
Karl Williamson [Sat, 5 Jun 2021 13:33:13 +0000 (07:33 -0600)]
Configure changes for HAS_NON_INT_BITFIELDS
This probe has been available without my realizing it had been merged.
Some compilers, chiefly IBM, use only integer-size bitfields, warning
when presented with other-sized ones. Allowing other-sized fields is an
extension to the C standard.
These warnings don't affect the correctness of the code generated, but
very many are generated per run, potentially overwhelming the reader
into not noticing warnings that are important.
Karl Williamson [Fri, 4 Jun 2021 03:47:24 +0000 (21:47 -0600)]
regcomp.c: Fix typo in comment
Karl Williamson [Tue, 1 Jun 2021 11:59:20 +0000 (05:59 -0600)]
regcomp.h: Clarify comment
Nicholas Clark [Fri, 11 Jun 2021 12:17:44 +0000 (12:17 +0000)]
Add -Werror=vla by default. C99 variable-length arrays are dangerous.
C11 makes them optional, and MSVC doesn't support them. We can't use them
(but even if we could, we should not).
Dave Lambley [Thu, 10 Jun 2021 20:22:41 +0000 (21:22 +0100)]
Add missing quotes to IO::Socket::INET example
Also clean trailing white space.
Committer: Dave Lambley is now a Perl author.
James E Keenan [Wed, 2 Jun 2021 22:10:57 +0000 (22:10 +0000)]
Skip tests of CORE::Dump on FreeBSD
Because on this OS this test writes to /var/log/messages
For: https://github.com/Perl/perl5/issues/18847
Move FreeBSD skip condition near to other 'skip_all' conditions, per
review by TonyC.
Tomasz Konojacki [Fri, 4 Jun 2021 20:05:04 +0000 (22:05 +0200)]
replace all instances of PERL_IMPLICIT_CONTEXT with MULTIPLICITY
Since the removal of PERL_OBJECT
(
acfe0abcedaf592fb4b9cb69ce3468308ae99d91) PERL_IMPLICIT_CONTEXT and
MULTIPLICITY have been synonymous and they're being used interchangeably.
To simplify the code, this commit replaces all instances of
PERL_IMPLICIT_CONTEXT with MULTIPLICITY.
PERL_IMPLICIT_CONTEXT will stay defined for compatibility with XS
modules.
Tony Cook [Tue, 4 May 2021 05:04:25 +0000 (15:04 +1000)]
avoid a prototype warning assigning \&getcwd to *cwd
This would produce a warning if we fallback to using getcwd() where
getcwd() has a prototype.
Tony Cook [Wed, 5 May 2021 00:12:31 +0000 (10:12 +1000)]
don't fallback to simple pwd
When _backtick_pwd invokes $pwd_cmd it first clears the PATH, and since
the command has no shell metacharacters, it perl won't invoke the
shell, so it will always fail.
An alternative here might be to use "/bin/sh -c pwd" but there's no
guarantee that pwd is available as a shell builtin.
Tony Cook [Tue, 4 May 2021 04:55:50 +0000 (14:55 +1000)]
remove code that assuming finding pwd on the path is reasonable
We deliberately clear PATH when invoking pwd, so this search is
useless.
Tony Cook [Thu, 3 Jun 2021 05:51:01 +0000 (15:51 +1000)]
prevent undefined behaviour at a language level while probing getenv
This test in Configure tries to probe for undefined behaviour in
getenv(), but provokes undefined behaviour in C/C++ by falling off
the end of a function with a non-void return type.
Without optimization clang++ generated a ud2 instruction here on
amd64 producing an illegal instruction exception. With optimization
the test case fell off the end and started re-executing main(),
eventually producing a SIGBUS.
Simply dropping the value of getenv() here and returning NULL wasn't
useful, under -O2 the compiler optimized away the getenv() call,
voiding the whole point of the test.
Scott Baker [Wed, 2 Jun 2021 20:31:28 +0000 (13:31 -0700)]
Simply the uc() and lc() documentation for novices
Tomoyuki Sadahiro [Sun, 6 Jun 2021 22:23:17 +0000 (22:23 +0000)]
Synch with CPAN version 1.30
Per https://rt.cpan.org/Ticket/Display.html?id=133952
James E Keenan [Sun, 6 Jun 2021 15:40:51 +0000 (11:40 -0400)]
Obituary for Spider Boardman
Per posting on perl.module-authors by Neil Bowers and
https://www.nashuatelegraph.com/obituaries-memorials/obituaries/2021/05/29/spider-raun-boardman/
Scott Baker [Wed, 26 May 2021 18:12:09 +0000 (11:12 -0700)]
Add some examples to the glob() documentation
Leon Timmermans [Tue, 12 Jan 2021 22:47:55 +0000 (23:47 +0100)]
Call magic on all elements on %SIG delocalization
Leon Timmermans [Fri, 14 May 2021 12:18:03 +0000 (14:18 +0200)]
Correctly call delete magic on all hash magic
Previously it would only call it correctly if the hash magic was
RMAGICAL, which is only set if a magic either has clear magic or has
neither get or set magic. This means any magic with get or set would
break.
Paul "LeoNerd" Evans [Mon, 31 May 2021 21:35:40 +0000 (22:35 +0100)]
Rename G_ARRAY to G_LIST; provide back-compat when not(PERL_CORE)
Hugo van der Sanden [Tue, 1 Jun 2021 13:33:57 +0000 (14:33 +0100)]
gh18770: stop scanning for substrs after *COMMIT
*ACCEPT already avoids this (because it is "ENDLIKE"), but gets a
related fix to stop scanning for start class.
Karl Williamson [Sat, 2 May 2020 12:58:57 +0000 (06:58 -0600)]
regcomp.c: white-space; comments
Michael G Schwern [Wed, 5 May 2021 13:18:01 +0000 (07:18 -0600)]
Base *.[ch] files: Replace leading tabs with blanks
This is a rebasing by @khw of part of GH #18792, which I needed to get
in now to proceed with other commits.
It also strips trailing white space from the affected files.
Karl Williamson [Sat, 2 May 2020 12:45:01 +0000 (06:45 -0600)]
regcomp.c: Extract code from a too-large-function
S_regclass() is unwieldy. This commit splits it into two nearly equal
size parts. More could be done.
Karl Williamson [Mon, 31 May 2021 15:10:21 +0000 (09:10 -0600)]
perl5340delta: Clarify /x{,3}/
This was suggested by @LanX
This fixes GH #18812
Karl Williamson [Mon, 31 May 2021 15:01:58 +0000 (09:01 -0600)]
perluniprops: Remove references to Unicode::Unihan
This CPAN module doesn't work on recent Unicode versions
This fixes GH #18787
Ricardo Signes [Sat, 8 May 2021 14:12:18 +0000 (10:12 -0400)]
Porting/docs-team-charter.pod: the docs team charter
Hugo van der Sanden [Thu, 8 Aug 2019 16:27:14 +0000 (17:27 +0100)]
[gh 17847] data->pos_delta should stick at infinity
The expression we're about to add to data->pos_delta in this part of
study_chunk() can be both positive or negative; however while we apply
an overflow check to avoid exceeding OPTIMIZE_INFTY, we were happily
subtracting from it when the expression was negative, making it no longer
infinite.
Hugo van der Sanden [Sun, 4 Aug 2019 13:07:22 +0000 (14:07 +0100)]
[gh 17847] avoid overflow on delta in study_chunk
delta and pos_delta may hold OPTIMIZE_INFTY to represent infinity.
Hugo van der Sanden [Sun, 4 Aug 2019 13:31:29 +0000 (14:31 +0100)]
[gh 17847] Include data->pos_delta in #if'd-out diagnostic
Hugo van der Sanden [Mon, 31 May 2021 13:08:54 +0000 (14:08 +0100)]
gh18842: fix a pair of sprintf format warnings
The format is '%s', so it is not appropriate to wrap the char * arguments
in SVfARG().
James E Keenan [Fri, 21 May 2021 03:35:02 +0000 (23:35 -0400)]
Improve grammar
Per suggestion by oodler577 in https://github.com/Perl/perl5/pull/18736.
With correction reported as needed by grinnz in
https://github.com/Perl/perl5/pull/18806.
積丹尼 Dan Jacobson [Sat, 22 May 2021 04:24:43 +0000 (12:24 +0800)]
Add difference between <=> and cmp example
For https://github.com/Perl/perl5/issues/18742
Matthew Horsfall [Tue, 25 May 2021 00:06:51 +0000 (20:06 -0400)]
perlhacktips: Add callgrind profiling documentation
One of the benefits of callgrind is you can profile perls that
haven't been built with debugging symbols, which can be real useful
on live-ish datasets