Brian Fraser [Wed, 1 Feb 2012 02:42:48 +0000 (23:42 -0300)]
perlunicode: #109408
Brian Fraser [Wed, 1 Feb 2012 02:41:55 +0000 (23:41 -0300)]
perltrap: #109408
Brian Fraser [Wed, 1 Feb 2012 02:41:45 +0000 (23:41 -0300)]
perlthrtut: #109408
Brian Fraser [Wed, 1 Feb 2012 02:41:24 +0000 (23:41 -0300)]
perlsub: #109408
Brian Fraser [Wed, 1 Feb 2012 02:41:16 +0000 (23:41 -0300)]
perlsec: #109408
Brian Fraser [Wed, 27 Jun 2012 15:45:13 +0000 (08:45 -0700)]
perlrun: #109408
Brian Fraser [Wed, 1 Feb 2012 02:40:59 +0000 (23:40 -0300)]
perlretut: #109408
Brian Fraser [Wed, 1 Feb 2012 02:40:48 +0000 (23:40 -0300)]
perlreftut: #109408
Brian Fraser [Wed, 1 Feb 2012 02:40:39 +0000 (23:40 -0300)]
perlref: #109408
Brian Fraser [Wed, 1 Feb 2012 02:40:27 +0000 (23:40 -0300)]
perlrebackslash: #109408
Brian Fraser [Wed, 1 Feb 2012 02:40:08 +0000 (23:40 -0300)]
perlre: #109408
Brian Fraser [Wed, 1 Feb 2012 02:39:52 +0000 (23:39 -0300)]
perlport: #109408
Brian Fraser [Wed, 1 Feb 2012 02:39:46 +0000 (23:39 -0300)]
perlpod: #109408
Brian Fraser [Wed, 1 Feb 2012 02:39:36 +0000 (23:39 -0300)]
perlop: #109408
Brian Fraser [Wed, 1 Feb 2012 02:39:27 +0000 (23:39 -0300)]
perlmod: #109408
Brian Fraser [Wed, 1 Feb 2012 02:39:06 +0000 (23:39 -0300)]
perllocale: #109408
Brian Fraser [Wed, 1 Feb 2012 02:38:51 +0000 (23:38 -0300)]
perlipc: #109408
Brian Fraser [Wed, 27 Jun 2012 15:40:38 +0000 (08:40 -0700)]
perlfunc: #109408
Brian Fraser [Wed, 1 Feb 2012 02:38:26 +0000 (23:38 -0300)]
perlform: #109408
Brian Fraser [Wed, 1 Feb 2012 02:38:15 +0000 (23:38 -0300)]
perldsc: #109408
Brian Fraser [Wed, 1 Feb 2012 02:38:03 +0000 (23:38 -0300)]
perldata: #109408
Brian Fraser [Wed, 1 Feb 2012 02:37:46 +0000 (23:37 -0300)]
perlcall: #109408
Father Chrysostomos [Wed, 27 Jun 2012 15:15:27 +0000 (08:15 -0700)]
diag.t: Skip, rather than, TODO for cat tests
Each item in the exception list for category/severity tests passes
either one or the other, so just skip them, to avoid passing to-do
tests, which are just a distraction. Separating them into two lists
is probably overkill.
Father Chrysostomos [Wed, 27 Jun 2012 13:03:35 +0000 (06:03 -0700)]
diag.t: Don’t emit erroneous passing to-do tests
The __CATEGORIES__ entries by definition exist in perldiag.
Father Chrysostomos [Wed, 27 Jun 2012 13:01:29 +0000 (06:01 -0700)]
diagnostics.t: Tweak to get tests passing
I thought I had run it, hmm.
Father Chrysostomos [Wed, 27 Jun 2012 07:53:14 +0000 (00:53 -0700)]
[Merge] perldiag.pod severity/category cleanup
Father Chrysostomos [Wed, 27 Jun 2012 07:47:24 +0000 (00:47 -0700)]
diag.t: Check categories and severity
There was code already started for this, but never finished. This
commit makes it work for the most part.
This is not smart enough yet to understand nested categories. There
is a new exceptions list in the __DATA__ section for cases it can’t
handle, which are precious few.
Father Chrysostomos [Wed, 27 Jun 2012 07:45:34 +0000 (00:45 -0700)]
diag.t: Use correct variable
Multiline messages are listed in the __DATA__ section with spaces
instead of line breaks. When adding proper support for multiline err-
ors earlier, I made a slight mistake and caused multiline to-do mess-
ages to skip the to-do code path, because I was looking them up via
the name with line breaks ($name), rather than the name with line
breaks modified ($key).
This was causing it to fall down to the pass($key) below.
I want to add more tests down there, which will fail for multiline
to-do items.
Father Chrysostomos [Wed, 27 Jun 2012 07:41:49 +0000 (00:41 -0700)]
diag.t: Load test.pl in BEGIN
so that parentheses can be omitted in tests to be added.
Father Chrysostomos [Wed, 27 Jun 2012 07:36:24 +0000 (00:36 -0700)]
perldiag: ‘Unicode surrogate is illegal’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 07:35:11 +0000 (00:35 -0700)]
perldiag: ‘Code point is not Unicode’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 07:32:27 +0000 (00:32 -0700)]
perldiag: ‘Operation returns its argument’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 07:30:36 +0000 (00:30 -0700)]
perldiag: ‘...illegal for interchange’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 07:11:09 +0000 (00:11 -0700)]
perldiag: ‘UTF-16 surrogate U+%X’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 07:07:22 +0000 (00:07 -0700)]
perldiag: ‘Ambiguous use resolved as’ is always S
Father Chrysostomos [Wed, 27 Jun 2012 06:17:43 +0000 (23:17 -0700)]
perldiag: Add cat for Lost precision
Father Chrysostomos [Wed, 27 Jun 2012 06:14:20 +0000 (23:14 -0700)]
perldiag: ‘Regexp modifier after "-"’ should have no cat
Only warnings have categories.
Father Chrysostomos [Wed, 27 Jun 2012 06:09:37 +0000 (23:09 -0700)]
perldiag: ‘Opening fh also as dir’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 06:08:59 +0000 (23:08 -0700)]
perldiag: ‘Opening dirhandle also as file’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 06:07:54 +0000 (23:07 -0700)]
perldiag: Add cat for Duplicate modifier
Father Chrysostomos [Wed, 27 Jun 2012 05:35:51 +0000 (22:35 -0700)]
perldiag: ‘invalid option -D%c’ is a warning
Father Chrysostomos [Wed, 27 Jun 2012 05:34:28 +0000 (22:34 -0700)]
perldiag: Don’t use L<<>>
diagnostics.pm isn’t smart enough to handle it, and programming it
for one case seems like overkill.
Father Chrysostomos [Wed, 27 Jun 2012 05:34:20 +0000 (22:34 -0700)]
perldiag: Add cat for PERL_SIGNALS illegal
Father Chrysostomos [Wed, 27 Jun 2012 05:26:53 +0000 (22:26 -0700)]
perldiag: ‘Unbalanced context’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 05:26:15 +0000 (22:26 -0700)]
perldiag: ‘Unbalanced tmps’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 05:25:54 +0000 (22:25 -0700)]
perldiag: ‘Unbalanced saves’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 05:25:37 +0000 (22:25 -0700)]
perldiag: ‘Unbalanced scopes’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 05:24:56 +0000 (22:24 -0700)]
perldiag: ‘Variable is not imported’ is a default warning
Father Chrysostomos [Wed, 27 Jun 2012 05:22:41 +0000 (22:22 -0700)]
perldiag: ‘Scalars leaked’ is a warning
Father Chrysostomos [Wed, 27 Jun 2012 05:17:15 +0000 (22:17 -0700)]
perldiag: Add cat for ‘Attempt to set length of freed array’
Father Chrysostomos [Wed, 27 Jun 2012 04:31:53 +0000 (21:31 -0700)]
Squash repetitive code in pp.c:S_delete_local
The two branches of this were almost identical. Not only is it unnec-
essary to repeat the code, but it is error-prone, as bug fixes have to
be done in both branches.
Father Chrysostomos [Wed, 27 Jun 2012 03:21:29 +0000 (20:21 -0700)]
Null HeVAL and local delete → crash
The XS API allows hash entries to be created with null values. perl
itself uses these internally, too.
Though they should rarely be seen by Perl code, Perl ops should still
be able to handle them without crashing (by croaking). I fixed helem
and hslice in 5.16 (commit
746f6409), but missed localised deletions.
Father Chrysostomos [Wed, 27 Jun 2012 03:05:55 +0000 (20:05 -0700)]
Make pp.c:pp_srand slightly less repetitive
Father Chrysostomos [Wed, 27 Jun 2012 01:04:02 +0000 (18:04 -0700)]
Make srand treat "-1" as -1
It was returning U+FFFD for negative numbers, unless they
were strings.
The SvOK is to avoid double uninit warnings. The !SvIsUV is for
efficiency. We don’t need to coerce it to an NV if it is a UV
already, because we know it won’t pass that test.
Father Chrysostomos [Wed, 27 Jun 2012 00:41:40 +0000 (17:41 -0700)]
Make srand respect magic
It was returning U+FFFD for negative numbers, but only for non-magical
variables.
Darin McBride [Mon, 25 Jun 2012 23:36:32 +0000 (17:36 -0600)]
AIX Hints file change
Ok, I think my earlier problem came from not cleaning up properly between
multiple compiles. So I don't need to modify any test.
Proposed log entry:
When compiling many of the perl modules available from CPAN, an expectation
of C99 support seems implied by many authors. Unfortunately, xlC doesn't
do this by default, we have to add -qlanglvl=extc99 to the ccflags to get
this to work. And by the time we get to installing modules, this flag
is already set in Config.
So, add the flag unconditionally at the outset. Also, remove
-qlonglong and -qlanglvl=extended from the flags to silence the warning that
extc99 includes them and that xlC is going to ignore it, using extc99 instead.
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Jesse Luehrs [Tue, 26 Jun 2012 21:47:51 +0000 (16:47 -0500)]
fix off-by-one when restoring hashes [perl #73972]
Storable tries to preallocate enough space for all of the elements it's
going to receive, both for efficiency reasons and because reallocation
triggers throwing away all of the placeholders in the hash (which are
used for restricted hashes) if the hash isn't already READONLY, and
since Storable rebuilds restricted hashes by first populating all of the
placeholders and then setting it READONLY at the end, this would break
things.
Unfortunately, it was allocating just slightly less than enough space -
hashes reallocate when they hit their limit, not when they exceed it,
and so if you tried to store a restricted hash with a number of keys
right on the boundary, it would trigger a reallocation and lose all of
the allowed keys that it had just stored. This fixes the issue by
allocating the correct amount of space to ensure that reallocation
doesn't happen.
Steve Hay [Tue, 26 Jun 2012 19:52:25 +0000 (20:52 +0100)]
Remove C++isms from doio.c
(Introduced by
c2fd40cb02 and not tolerated by VC++ compiling a C file.)
Jesse Luehrs [Tue, 26 Jun 2012 18:31:28 +0000 (13:31 -0500)]
perlrun typos from argrath@ub32.org [perl #113852]
Darin McBride [Tue, 26 Jun 2012 16:24:56 +0000 (09:24 -0700)]
[perl #112990] Simplify kill implementation and docs
Clean up kill implementation and clear up the docs in perlfunc to be less
ambiguous and encompass more of its behaviour.
a) kill -INT => $pid;
was surprisingly doing a "kill 0, $pid" instead of being the same as "kill -2,
$pid" (killing the process group for $pid with an interrupt). Now negative
signal names will be allowed and be the same as if the name was replaced with
the signal number it represents.
b) remove all calls to killpg() as killpg is defined in terms of kill anyway.
c) Clarify the use of signal names vs numbers in perlfunc so that using names
is not so well hidden, as well as explaining the usage of negative signal
numbers as well as negative process IDs.
Father Chrysostomos [Tue, 26 Jun 2012 16:23:06 +0000 (09:23 -0700)]
[perl #113812] Handle null CvOUTSIDE in cv_clone
Commit a0d2bbd stopped closures from hanging on to their
enclosing subs.
This means that the outer sub can be freed before the closure. Since
it is only the outer sub that references the closure prototype (in a
'&' entry in its pad), when the outer sub is freed the closure proto-
type goes with it. Now if that closure itself contains a closure
(more precisely, a closure prototype in its pad, referenced by an
anoncode op), that inner closure prototype’s CvOUTSIDE points to the
first closure prototype. When that first closure prototype is freed
the innermost closure prototype has its CvOUTSIDE set to whatever the
outermost sub’s CvOUTSIDE was set to, which could be null if it is
in its own file. So when the first closure is called, it passes to
cv_clone a closure prototype with no CvOUTSIDE.
cv_clone used to crash if CvOUTSIDE was null.
Example:
$ cat foo.pl
# the main CV of the file is the outer sub in this case
my $x
$first_closure = sub {
$inner_closure = sub { $x }
}
$ perl -e 'require "./foo.pl"; $first_closure->()'
Bus error
This commit makes it use find_runcv when CvOUTSIDE is null.
Father Chrysostomos [Tue, 26 Jun 2012 15:28:13 +0000 (08:28 -0700)]
perldiag: Two space after dots
Also rewrap for slightly better splain output
Jesse Luehrs [Tue, 26 Jun 2012 10:33:05 +0000 (05:33 -0500)]
fix test from previous commit
Jesse Luehrs [Tue, 26 Jun 2012 10:12:38 +0000 (05:12 -0500)]
fix memory leak in @INC filters that die [perl #92252]
Nicholas Clark [Tue, 5 Jun 2012 14:53:43 +0000 (16:53 +0200)]
In t/op/stat.t, ensure that the output of ls is not localised.
t/op/stat.t parses the output of ls, and will get confused if localisation
happens to change the header line containing the total to a word starting
with the letter c. This fixes the build issue on a Czech locale reported
in http://perlmonks.org/?node=973257 and RT #113472.
Tony Cook [Tue, 26 Jun 2012 07:56:44 +0000 (17:56 +1000)]
[perl #45173] port the test to MSWin32
Jesse Luehrs [Tue, 26 Jun 2012 08:13:20 +0000 (03:13 -0500)]
add comment about the atof change [perl #109318]
Jesse Luehrs [Tue, 26 Jun 2012 07:16:57 +0000 (02:16 -0500)]
warn on -i with no input files given [perl #113410]
Jesse Luehrs [Tue, 26 Jun 2012 06:35:31 +0000 (01:35 -0500)]
fix c++ compilation
Jesse Luehrs [Tue, 26 Jun 2012 05:13:54 +0000 (00:13 -0500)]
use a less broken test for locale radix in atof [perl #109318]
Jesse Luehrs [Tue, 26 Jun 2012 05:33:40 +0000 (00:33 -0500)]
fix some language/country codes
Father Chrysostomos [Tue, 26 Jun 2012 05:12:39 +0000 (22:12 -0700)]
diag.t: Two to-done entries I missed
Father Chrysostomos [Tue, 26 Jun 2012 05:10:12 +0000 (22:10 -0700)]
perldelta: make podcheck happy
Father Chrysostomos [Tue, 26 Jun 2012 05:08:46 +0000 (22:08 -0700)]
perldelta for #73690, scalar(write)
Father Chrysostomos [Tue, 26 Jun 2012 04:32:25 +0000 (21:32 -0700)]
perldelta for #112966/
2c5f48c251e
Father Chrysostomos [Tue, 26 Jun 2012 03:47:06 +0000 (20:47 -0700)]
perldelta for #113798, glob and PATH
Father Chrysostomos [Tue, 26 Jun 2012 03:43:02 +0000 (20:43 -0700)]
perldelta for #112962, reg_temp_copy and null offs
Father Chrysostomos [Tue, 26 Jun 2012 03:40:43 +0000 (20:40 -0700)]
perldelta: Oops, duplicate entry
Father Chrysostomos [Tue, 26 Jun 2012 03:39:39 +0000 (20:39 -0700)]
perldelta for #101666, regexp error error
Father Chrysostomos [Tue, 26 Jun 2012 03:39:27 +0000 (20:39 -0700)]
perldelta for #112826, Tie::StdHandle and read offset
Father Chrysostomos [Tue, 26 Jun 2012 03:36:04 +0000 (20:36 -0700)]
perldelta for #113764, duping scalar handles
Father Chrysostomos [Tue, 26 Jun 2012 03:33:40 +0000 (20:33 -0700)]
perldelta for #89544, nested closure leak
Father Chrysostomos [Tue, 26 Jun 2012 03:30:57 +0000 (20:30 -0700)]
perldelta for #113730, do and $@
Father Chrysostomos [Tue, 26 Jun 2012 03:29:22 +0000 (20:29 -0700)]
pp_sys.c: Squelch compiler warning
Father Chrysostomos [Tue, 26 Jun 2012 03:28:46 +0000 (20:28 -0700)]
perldelta for #113712, stubs after errors
Father Chrysostomos [Mon, 25 Jun 2012 00:58:54 +0000 (17:58 -0700)]
diag.t: Tolerate trailing space
Father Chrysostomos [Mon, 25 Jun 2012 00:53:27 +0000 (17:53 -0700)]
perldiag: Correct various regexp msgs
Many of these are listed in a slightly different way from what perl actually emits. E.g., this entry:
Sequence (?#... not terminated in regex; marked by <-- HERE in m/%s/
is incorrect, as the actual message is:
$ perl -e '/(?#/'
Sequence (?#... not terminated in regex m/(?#/ at -e line 1.
Father Chrysostomos [Mon, 25 Jun 2012 00:24:49 +0000 (17:24 -0700)]
diag.t: Support regcomp’s FAIL macros
Jesse Luehrs [Tue, 26 Jun 2012 01:43:38 +0000 (20:43 -0500)]
fix stack handling in write() [perl #73690]
I'm not sure about that POPs at the beginning of pp_leavewrite, but it
seems to work. As far as I can tell, executing the format always leaves
an extra value on the stack, but I'm not sure where that happens
exactly, so I'm just fixing it up there.
Steve Hay [Mon, 25 Jun 2012 17:03:18 +0000 (18:03 +0100)]
Import CCHOME from the environment when building with GCC on Windows
Using the environment for such things is preferable to always having to
specify a CCHOME= command-line argument, and is akin to setting various
environment variables via vcvars32.bat for VC++ builds.
Also remove a blank line to make it more obvious that copying DLLs to the
t/ folder is part of the test-prep target. (This is one thing which
doesn't work if CCHOME has not been set and MinGW isn't installed in its
default location.)
Vincent Pit [Mon, 25 Jun 2012 14:07:25 +0000 (16:07 +0200)]
Fix tab completion of module names in the debugger
Also broken by 'use strict'.
Vincent Pit [Mon, 25 Jun 2012 13:56:27 +0000 (15:56 +0200)]
Fix restarting a debugging session opened for a one-liner
It was broken by 'use strict' as well.
Vincent Pit [Mon, 25 Jun 2012 13:49:06 +0000 (15:49 +0200)]
Fix (and test) module listing in the debugger
This was also broken when 'use strict' was added.
Vincent Pit [Mon, 25 Jun 2012 13:06:49 +0000 (15:06 +0200)]
Fix (and test) breakpoints on subroutines
They were broken since 'use strict' was added to the debugger.
Jesse Luehrs [Mon, 25 Jun 2012 05:53:55 +0000 (00:53 -0500)]
perldelta for 8b8c1fb
Jesse Luehrs [Mon, 25 Jun 2012 05:39:57 +0000 (00:39 -0500)]
allow "my ()" [perl #113554]
it looks like this was an unrelated bugfix during development of mad,
but which was merged into core with #ifdef PERL_MAD just because it was
a change from the existing perl code... i don't see any reason why this
should have been ifdef'd out to begin with
Jesse Luehrs [Mon, 25 Jun 2012 00:00:54 +0000 (19:00 -0500)]
perldelta for 100c03a, f914a68, and 61a3fb8
Father Chrysostomos [Sun, 24 Jun 2012 21:14:01 +0000 (14:14 -0700)]
Add E. Choroba to AUTHORS
E. Choroba [Sun, 24 Jun 2012 20:28:29 +0000 (22:28 +0200)]
Fix Exporter.pm documentation: Notes are not code.
Father Chrysostomos [Sun, 24 Jun 2012 21:05:18 +0000 (14:05 -0700)]
perldiag: Document ‘Integer overflow in srand’