Chris 'BinGOs' Williams [Fri, 30 Dec 2011 22:38:24 +0000 (22:38 +0000)]
Update Maintainers.pl for the CGI.pm update.
Chris 'BinGOs' Williams [Fri, 30 Dec 2011 22:37:19 +0000 (22:37 +0000)]
Update CPAN-Meta to CPAN version 2.113640
[DELTA]
2.113640 2011-12-30 15:19:46 America/New_York
- Version::Requirements has now been merged as CPAN::Meta::Requirements,
rendering Version::Requirements itself redundant
Father Chrysostomos [Fri, 30 Dec 2011 22:40:36 +0000 (14:40 -0800)]
[perl #107296] Document File::Glob’s default flags
Father Chrysostomos [Fri, 30 Dec 2011 22:05:23 +0000 (14:05 -0800)]
Increase $File::Glob::VERSION to 1.16
Ricardo Signes [Fri, 30 Dec 2011 18:23:11 +0000 (13:23 -0500)]
include a package POSIX::SigSet
this is mostly for the benefit of the PAUSE indexer, as described
in the code comment
Karl Williamson [Fri, 30 Dec 2011 16:49:36 +0000 (09:49 -0700)]
mktables: Fix bug for early Unicode versions
mktables should be able to be run on any Unicode version. Prior to this
patch, it was trying to do something unconditionally with the Name_Alias
property, whereas it should only do that on versions that have this
property.
Karl Williamson [Fri, 30 Dec 2011 16:11:23 +0000 (09:11 -0700)]
mktables: Change function name
This is in preparation for Unicode 6.1 for which the new name will make
more sense.
Karl Williamson [Fri, 30 Dec 2011 16:02:48 +0000 (09:02 -0700)]
mktables: Unicode 6.1 table will be empty
So, change mktables so it is expecting that.
Karl Williamson [Fri, 30 Dec 2011 16:02:02 +0000 (09:02 -0700)]
mktables: Add comment
Karl Williamson [Fri, 30 Dec 2011 15:55:49 +0000 (08:55 -0700)]
Unicode:UCD: Add comments
Karl Williamson [Fri, 30 Dec 2011 15:51:34 +0000 (08:51 -0700)]
Unicode::UCD: Extend prop_invmap() to handle multi-entries per code point
This is in preparation for Unicode 6.1, in which the Name_Alias property
has more than one entry in its table per code point.
Karl Williamson [Fri, 30 Dec 2011 15:47:48 +0000 (08:47 -0700)]
Unicode::UCD: white-space only
Karl Williamson [Fri, 30 Dec 2011 15:46:01 +0000 (08:46 -0700)]
Unicode::UCD: Allow prop_invlist() to work on non-compact tables
This accumulates adjacent ranges in case the table is not stored
compactly.
Karl Williamson [Fri, 30 Dec 2011 15:37:04 +0000 (08:37 -0700)]
Unicode::UCD: Special case prop_aliases() 'indic'
This is in preparation for Unicode 6.1 which adds a property whose name
begins with 'indic', as in Indic languages. This creates a conflict
with Perl's longstanding use of 'in' as a prefix in a property name.
"\p{infoo}" is a synonym for "\p{blk=foo}". The conflict is resolved
here with a special case.
Karl Williamson [Fri, 30 Dec 2011 04:54:42 +0000 (21:54 -0700)]
Unicode::UCD: Allow prop_invmap() to work on non-compact binary properties
It may be that the tables input to prop_invmap() are not in the most
compact form. There was a problem coping with these on binary
properties; which this commit fixes by realizing that a binary property
omits its 'Y' property value.
The .t does not pass these tests when the input is not compact, though.
Karl Williamson [Fri, 30 Dec 2011 04:48:35 +0000 (21:48 -0700)]
Unicode::UCD: Correct pod
The example is wrong; now the full script names are output, not the
short ones.
Shlomi Fish [Sat, 24 Dec 2011 20:03:58 +0000 (22:03 +0200)]
Add a test for "n EXPR()".
Shlomi Fish [Tue, 13 Dec 2011 17:03:06 +0000 (19:03 +0200)]
perl -d: add a test for s EXPR().
This patch involves addding another "perl -d" input script that contains a
subroutine that isn't called by default.
Shlomi Fish [Tue, 13 Dec 2011 16:41:32 +0000 (18:41 +0200)]
perl -d: add a test to the 's' command.
Conflicts:
lib/perl5db.t
Shlomi Fish [Sun, 11 Dec 2011 20:41:35 +0000 (22:41 +0200)]
Add a test for s.
Shlomi Fish [Sun, 11 Dec 2011 19:49:29 +0000 (21:49 +0200)]
perl -d: test for 'T'.
Shlomi Fish [Sat, 10 Dec 2011 15:23:04 +0000 (17:23 +0200)]
perl -d: add test for the x command.
Shlomi Fish [Sat, 10 Dec 2011 14:17:04 +0000 (16:17 +0200)]
Add a test for the debugger p command.
Chris 'BinGOs' Williams [Fri, 30 Dec 2011 15:35:54 +0000 (15:35 +0000)]
Update CGI to CPAN version 3.59
[DELTA]
Version 3.59 Dec 29th, 2011
[BUG FIXES]
- We no longer read from STDIN when the Content-Length is not set, preventing
requests with no Content-Length from freezing in some cases. This is consistent
with the CGI RFC 3875, and is also consistent with CGI::Simple. However, the old
behavior may have been expected by some command-line uses of CGI.pm.
Thanks to Philip Potter and Yanick Champoux. See RT#52469 for details:
https://rt.cpan.org/Public/Bug/Display.html?id=52469
[INTERNALS]
- remove tmpdirs more aggressively. Thanks to rjbs (RT#73288)
- use Text::ParseWords instead of ancient shellwords.pl. Thanks to AlexBio.
- remove use of define(@arr). Thanks to rjbs.
- spelling fixes. Thanks to Gregor Herrmann and Alessandro Ghedini.
- fix test count and warning in t/fast.t. Thanks to Yanick.
Eric Brine [Fri, 30 Dec 2011 05:55:40 +0000 (21:55 -0800)]
Clarify that \Q, \U, \L don't require \E
Signed-off-by: Abigail <abigail@abigail.be>
Nicholas Clark [Fri, 30 Dec 2011 13:23:53 +0000 (14:23 +0100)]
Note POSIX changes in perldelta.
Nicholas Clark [Fri, 9 Dec 2011 12:09:07 +0000 (13:09 +0100)]
Provide the correct POSIX return value for POSIX::dup2() on Win32.
Microsoft, in their wisdom, chose to ignore the POSIX spec when implementing
their dup2(), and have theirs return 0 on success, instead of the file
descriptor. It seems that no other vendor is this, um, "special", so code
the exception directly, as we don't run Configure on Win32, so there's little
point probing for this.
This resolves RT #98912.
Nicholas Clark [Thu, 8 Dec 2011 15:46:21 +0000 (16:46 +0100)]
Convert POSIX::sleep to an XS wrapper for PerlProc_sleep().
Previously it was a Perl wrapper for CORE::sleep, converting CORE::sleep's
return value of elapsed time slept into the POSIX return value of seconds
remaining. However, that approach could sometimes return a negative result
if CORE::sleep had slept for more than a second longer than the requested
time.
Karl Williamson [Fri, 30 Dec 2011 04:52:45 +0000 (21:52 -0700)]
perldelta for Unicode::UCD change
Karl Williamson [Fri, 30 Dec 2011 02:14:07 +0000 (19:14 -0700)]
Unicode::UCD: Use 6.1 format for Name_Alias
The Name_Alias property is changing significantly in Unicode 6.1. It
will have an extra value for each alias (and there will be a lot more
aliases). That extra value is considered informative, and gives the
type of alias this is. prop_invmap() should return both the alias and
its type. This commit changes it so that even in 6.0, it will return
what it is going to return in 6.1 (for the 6.0 aliases).
This function has not been released in a stable Perl version. Thus,
this gets the ultimate format into Perl before anyone has come to depend
on the earlier one.
squish
Karl Williamson [Fri, 23 Dec 2011 00:58:20 +0000 (17:58 -0700)]
regcomp.c: Silence valgrind warning
This happens only in doing debug output. Initialize these two debugging
variables
Karl Williamson [Tue, 27 Dec 2011 20:47:36 +0000 (13:47 -0700)]
mktables: Add comment
Karl Williamson [Tue, 27 Dec 2011 18:12:47 +0000 (11:12 -0700)]
mktables: Arrange to handle 6.1 ScriptExtensions.txt
Unlike 6.0, this property is listed in 6.1's PropValueAliases.txt, so is
automatically created in 6.1. Thus this needs to be checked for and the
initialization moved out of the constructor.
Karl Williamson [Tue, 27 Dec 2011 17:51:58 +0000 (10:51 -0700)]
mktables: Accommodate new @missings in Unicode 6.1
The Unicode 6.1 release candidate includes a new @missings line for the
ScriptExtenstions.txt file which we need to know about and deal with.
Karl Williamson [Tue, 27 Dec 2011 17:46:54 +0000 (10:46 -0700)]
mktables: Make protected method available
This is needed in 6.1 for a special case. It still should be used only
in limited circumstances so is still protected (meaning only that its
name begins with an underscore).
Karl Williamson [Tue, 27 Dec 2011 17:12:26 +0000 (10:12 -0700)]
mktables: Add capability to add dup FIFO
This is in preparation for Unicode 6.1. This adds the capability for a
duplicate code point to be added to a table after all existing
duplicates. Previously, new duplicates were added before any existing
ones.
Karl Williamson [Tue, 27 Dec 2011 16:57:53 +0000 (09:57 -0700)]
mktables: Rename variable
This is in preparation for Unicode 6.1. The variable means LIFO, and in
6.1, a FIFO mode will also be required, so indicate that the current
variable means LIFO.
Karl Williamson [Tue, 27 Dec 2011 02:30:45 +0000 (19:30 -0700)]
charnames.t: Skip null name test
In versions of Unicode earlier than 6.1, there was no possibility of a
name being empty here; but 6.1 will make that happen, so guard against
it.
Karl Williamson [Tue, 27 Dec 2011 02:28:03 +0000 (19:28 -0700)]
charnames.t: Add test names
This adds test names to nearly all the ones that were missing. Most
were done via a global substituted in a text editor.
Karl Williamson [Tue, 27 Dec 2011 02:23:53 +0000 (19:23 -0700)]
charnames.t: Fix test that passed whether or not it should
This test was calling grep, then the comma operator, then the non-empty
string after the comment operator caused it to always succeed.
Karl Williamson [Tue, 27 Dec 2011 00:38:44 +0000 (17:38 -0700)]
mktables: Comments only
Karl Williamson [Mon, 26 Dec 2011 20:05:10 +0000 (13:05 -0700)]
Unicode/UCD.t: Avoid early prototype messages
Add an ampersand before the calls to silence these warnings
Karl Williamson [Mon, 26 Dec 2011 19:45:17 +0000 (12:45 -0700)]
mktables: Ignore @missing lines in certain source files
This is in preparation for Unicode 6.1. The release candidate version of these files
changes the syntax of this line in several of its files, so that
mktables sees them as a problem. And, they aren't used anyway.
Karl Williamson [Fri, 23 Dec 2011 23:58:31 +0000 (16:58 -0700)]
perlunicode: nit
Karl Williamson [Mon, 26 Dec 2011 19:17:10 +0000 (12:17 -0700)]
mktables: Account for 2 provisional files
This is in preparation for Unicode 6.1. These two provisional
properties are available starting in 6.0, but the rest of the data base
did not refer to them, so we could safely ignore them. But in the beta
6.1, they are referred to elsewhere, which makes mktables generate hooks
for them, and then complains when those hooks are unused.
This patch should work no matter how 6.1 final comes out, and allows
someone who really wants to use these provisional properties to
recompile Perl without having to delve too far into the mktables code to
get it to work.
Karl Williamson [Mon, 26 Dec 2011 19:08:47 +0000 (12:08 -0700)]
mktables: Need to have two classes of unused files
The current code works only when skipped files aren't actually present.
Otherwise, it deletes them from a hash, which causes a wrong warning to
be output. By creating a separate hash for skipped files, we avoid
that.
Karl Williamson [Mon, 26 Dec 2011 18:51:21 +0000 (11:51 -0700)]
mktables: Consistently store lc of key in hash
In most places, the keys to this hash are stored in lowercase, but not
formerly this one. This enables not having to lc in other places.
Karl Williamson [Mon, 26 Dec 2011 18:45:16 +0000 (11:45 -0700)]
mktables: Can skip processing suppressed properties
Karl Williamson [Mon, 26 Dec 2011 18:21:54 +0000 (11:21 -0700)]
mktables: White-space only
To make vertically line up based on an added test
Karl Williamson [Mon, 26 Dec 2011 18:10:28 +0000 (11:10 -0700)]
mktables: Don't test suppressed table validity
This omits the test for should a table be full for suppressed tables.
Other actions in the code may or may not bypass filling them, knowing
they are suppressed.
Karl Williamson [Sat, 24 Dec 2011 23:31:17 +0000 (16:31 -0700)]
mktables: reorder two tests
This simply swaps two blocks so that the fate of a table is fully
figured out before deciding if it should match everything or not.
Matthew Horsfall (alh) [Sun, 25 Dec 2011 16:56:02 +0000 (11:56 -0500)]
Expand tabs in Artistic license to spaces
This addresses [rt.perl.org #74046] and Debian #572245
( http://bugs.debian.org/572245 )
Craig A. Berry [Thu, 29 Dec 2011 22:57:24 +0000 (16:57 -0600)]
Allow diag.t to pass tests for multi-line warnings.
It's been sending the full warning text to t/test.pl's pass()
function. If there are newlines in the the warning, t/TEST (though
not t/harness) will spew "Unexpected output at ..." messages and
fail the test. In this context, the warning is just a message
printed by the test infrastructure, so we might as well use the
version of the warning that's already had newlines replaced with
spaces.
Father Chrysostomos [Thu, 29 Dec 2011 19:13:57 +0000 (11:13 -0800)]
Increase $POSIX::VERSION to 1.28
Leon Timmermans [Mon, 26 Dec 2011 17:06:54 +0000 (19:06 +0200)]
Signal handlers must run before sigsuspend returns
The whole point of sigsuspend and pause is to wait until a signal has
arrived, and then return *after* it has been triggered. Currently
delayed/"safe" signals prevent that from happening, which might cause
race conditions.
This patch prevents that (as far as possible) by running the signal
handlers ASAP.
Steffen Mueller [Thu, 29 Dec 2011 16:54:37 +0000 (17:54 +0100)]
ExtUtils::ParseXS: Bump versions to 3.11
This is necessary for a CPAN release that fixes a versioning problem in
version 3.09 (CPAN RT #73555).
No functional changes.
Leon Timmermans [Mon, 4 Jul 2011 11:05:39 +0000 (13:05 +0200)]
Export PerlIOBase_open
Shlomi Fish [Sat, 10 Dec 2011 11:35:41 +0000 (13:35 +0200)]
perl -d: display lines inside subroutines.
This is another fix to the perl debugger while making sure that lines
inside subroutines will be printed in the run-time display of the perl
debugger: https://rt.perl.org/rt3/Ticket/Display.html?id=104820 .
Father Chrysostomos [Thu, 29 Dec 2011 07:04:04 +0000 (23:04 -0800)]
Croak when setting a tied @DB::args
In commit
f8c105437 I stopped the setting of a tied @DB::args from
crashing, by untying the array. Untying an array automatically with-
out saying anything seems a little too much like action at a distance.
For now, let’s just croak, as we can always change it later once we
decide what should happen. At least that’s better than crashing.
Father Chrysostomos [Thu, 29 Dec 2011 07:00:57 +0000 (23:00 -0800)]
[Merge] perldiag/diag.t clean-up
This is a random sequence of a about one and a half dozen commits that
all happen to be in the same area.
At least one of these changes the wording of a message, so it should
probably go in perldelta.
Father Chrysostomos [Wed, 28 Dec 2011 05:40:57 +0000 (21:40 -0800)]
Speed up diag.t slightly
By using strings instead of creating qr// things that get flattened,
we can reduce the run time by 5%.
Father Chrysostomos [Wed, 28 Dec 2011 05:27:00 +0000 (21:27 -0800)]
perldiag: Delete redundant entry
This was made redundant three commits ago when I added more
descriptive entries for the two variations of this message.
Father Chrysostomos [Wed, 28 Dec 2011 02:12:20 +0000 (18:12 -0800)]
diag.t: Delete documented items from to-do
Father Chrysostomos [Wed, 28 Dec 2011 02:11:28 +0000 (18:11 -0800)]
Regen pod issues
podcheck.t doesn’t like links with formatting codes, even though the
spec says to do it that way.
Father Chrysostomos [Wed, 28 Dec 2011 02:04:17 +0000 (18:04 -0800)]
Document various messages in perldiag
Father Chrysostomos [Tue, 27 Dec 2011 22:52:21 +0000 (14:52 -0800)]
diag_listed_as galore
In two instances, I actually modified to code to avoid %s for a
constant string, as it should be faster that way.
Father Chrysostomos [Tue, 27 Dec 2011 20:44:43 +0000 (12:44 -0800)]
diag_listed_as for -S error
Also teach diag.t not to mistake /* die */ for a die() call, as
it did in this case, consequently ignoring the diag_listed_as,
which it thought was in the middle of the call.
Father Chrysostomos [Tue, 27 Dec 2011 18:09:01 +0000 (10:09 -0800)]
diag_listed_as for another lv sub error
Father Chrysostomos [Tue, 27 Dec 2011 18:06:44 +0000 (10:06 -0800)]
diag_listed_as for lvalue scalar context errors
Father Chrysostomos [Tue, 27 Dec 2011 18:05:04 +0000 (10:05 -0800)]
perldiag: Consistent formatting of categories
Father Chrysostomos [Tue, 27 Dec 2011 17:57:59 +0000 (09:57 -0800)]
perldiag: Tweak pack/% message
to match the actual message perl emits.
Father Chrysostomos [Tue, 27 Dec 2011 17:56:25 +0000 (09:56 -0800)]
diag.t: perldiag does not escape %
It’s primarily for human consumption, and escaping % doesn’t avoid
ambiguities anyway, as some messages contain a literal \ followed
by a format sequence.
Father Chrysostomos [Tue, 27 Dec 2011 17:49:48 +0000 (09:49 -0800)]
Document ‘Can't reset %ENV’ in perldiag
Father Chrysostomos [Tue, 27 Dec 2011 17:43:06 +0000 (09:43 -0800)]
Teach diag.t about "CONSTANTS" in msgs
After writing this code, I found that "Can't open "BIT_BUCKET"..." was
the only message affected, so I could have added an exception, but
I’ve already done this, so why not?
Father Chrysostomos [Tue, 27 Dec 2011 17:07:44 +0000 (09:07 -0800)]
perldiag: Document 2 more ‘Can't open’ messages
Father Chrysostomos [Tue, 27 Dec 2011 16:51:53 +0000 (08:51 -0800)]
perldiag: Tweak ‘Can't open perl script’
to match what’s in the source code more closely.
Father Chrysostomos [Tue, 27 Dec 2011 16:33:18 +0000 (08:33 -0800)]
Correct spelling of sv_insert error msg
It is already documented in perldiag with the right spelling.
Father Chrysostomos [Tue, 27 Dec 2011 16:31:06 +0000 (08:31 -0800)]
More diag_listed_as
Shlomi Fish [Mon, 12 Dec 2011 14:51:00 +0000 (16:51 +0200)]
perl -d: fixes "b . COND()".
break-dot for filename was broken due to previous commits. It was fixed
now. Also documented it in pod/perldebug.pod, because it was
undocumented.
Steffen Mueller [Wed, 28 Dec 2011 18:05:35 +0000 (19:05 +0100)]
Refer to ExtUtils::ParseXS 3.09 in Maintainers.pl
Steffen Mueller [Wed, 28 Dec 2011 17:47:49 +0000 (18:47 +0100)]
Escape double-quotes in generated #line directives
#line directives can be generated from commands. Those may be using
double quotes. That may not be considered friendly by preprocessors when
the result looks anything like this
#line 123 "perl -e "foo""
Input on whether the following is portable would be appreciated.
#line 123 "perl -e \"foo\""
gcc is happy with it. I know. The world's not just win32, osx, and linux
with a choice between three compilers.
Father Chrysostomos [Tue, 27 Dec 2011 08:58:23 +0000 (00:58 -0800)]
pp_hot.c: diag_listed_as for method error
Father Chrysostomos [Tue, 27 Dec 2011 08:56:45 +0000 (00:56 -0800)]
perldiag: Document ‘Bizarre SvTYPE’
Father Chrysostomos [Tue, 27 Dec 2011 08:54:41 +0000 (00:54 -0800)]
diag.t: Rmv warning about "0" from to-do list
This was already documented, but diag.t didn’t start realising that
until commit
ca53083acb.
Father Chrysostomos [Tue, 27 Dec 2011 08:53:21 +0000 (00:53 -0800)]
perldiag: Remove ‘in %s’ from bizarre copy msg
so that splain can find the message even when there is no op
mentioned.
Father Chrysostomos [Tue, 27 Dec 2011 08:46:10 +0000 (00:46 -0800)]
Move diag_listed_as entry in gv.c
It wasn’t close enough for diag.t to see it.
Father Chrysostomos [Tue, 27 Dec 2011 08:42:28 +0000 (00:42 -0800)]
Teach diag.t that %s%s == %s
Father Chrysostomos [Tue, 27 Dec 2011 08:40:30 +0000 (00:40 -0800)]
perldiag: Correct ‘Bad name after %s::’
This message can occur with either package separator (Bad name after
foo'), so having :: in the header stops splain from finding it.
Father Chrysostomos [Tue, 27 Dec 2011 08:35:39 +0000 (00:35 -0800)]
Remove item from diag.t’s to-do list
Father Chrysostomos [Tue, 27 Dec 2011 08:14:00 +0000 (00:14 -0800)]
av.c: Consistent use of spaces after dots in apidocs
Father Chrysostomos [Tue, 27 Dec 2011 08:12:24 +0000 (00:12 -0800)]
Document the av_reify warning in perldiag
Father Chrysostomos [Tue, 27 Dec 2011 08:11:29 +0000 (00:11 -0800)]
Fix compiler warning in perl.c
Father Chrysostomos [Tue, 27 Dec 2011 08:11:12 +0000 (00:11 -0800)]
Don’t check for tied @DB'args when not REAL
This should make things just a smidgen faster in the most common case.
As of the previous commit, tied arrays are always AvREAL.
Father Chrysostomos [Tue, 27 Dec 2011 08:10:05 +0000 (00:10 -0800)]
Turn on AvREAL for tied arrays
It turns out that it is possible to trigger the av_reify warning:
./perl -Ilib -lwe '
sub TIEARRAY{bless[]}
sub {
tie @_, "";
\@_;
}->(1);
'
av_reify called on tied array at -e line 7.
Father Chrysostomos [Tue, 27 Dec 2011 07:46:35 +0000 (23:46 -0800)]
Fix crash when tying @DB::args
I was looking at diag.t to see what messages I could document.
‘av_reify called on tied array’ looked interesting, so I decided to
see whether I could trigger it. I got something else:
./perl -Ilib -lwe '
sub TIEARRAY{bless[]}
sub CLEAR{}
sub EXTEND{}
tie @DB::args, "";
package DB; sub {() = caller 0;}->(1,2,3);
'
Name "DB::args" used only once: possible typo at -e line 5.
Bus error
How exciting!
What’s happening is that Perl_init_dbargs turns off AvREAL after
clearing a real array. Then pp_caller does av_extend and merrily
tries to copy into AvARRAY(PL_dbargs). But AvARRAY has not been allo-
cated, because av_extend called EXTEND instead.
I fixed this by untying the array before turning off AvREAL. I don’t
know whether that is the best fix. Alternatives would be to croak
or to do the assignment in pp_caller differently for tied arrays (in
which case tying @DB::args would cause objects to leak unexpectedly,
until the next caller() call in the DB package).
Father Chrysostomos [Tue, 27 Dec 2011 06:46:22 +0000 (22:46 -0800)]
perlxstut: keep indentation consistent within example
Dave Rolsky [Tue, 27 Dec 2011 07:05:35 +0000 (01:05 -0600)]
Only skip updating dev.perl.org for RC releases
Dave Rolsky [Tue, 27 Dec 2011 07:02:17 +0000 (01:02 -0600)]
Make sure to close any lists in the generated checklist
Father Chrysostomos [Tue, 27 Dec 2011 06:41:28 +0000 (22:41 -0800)]
[perl #102622] perlxstut: Add SvGETMAGIC to example
Father Chrysostomos [Tue, 27 Dec 2011 06:31:04 +0000 (22:31 -0800)]
Document the unknown error in perldiag