This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
14 years agoFix Pod errors in perl5113delta.pod.
Nicholas Clark [Sun, 20 Dec 2009 10:23:26 +0000 (10:23 +0000)]
Fix Pod errors in perl5113delta.pod.

14 years agoFix version number we are different from
Leon Brocard [Sun, 20 Dec 2009 09:14:53 +0000 (09:14 +0000)]
Fix version number we are different from

14 years agoflesh out doc updates
Ricardo Signes [Sat, 19 Dec 2009 23:36:50 +0000 (18:36 -0500)]
flesh out doc updates

14 years agoFurther paring down of perldelta
Jesse Vincent [Sat, 19 Dec 2009 22:52:37 +0000 (17:52 -0500)]
Further paring down of perldelta

14 years agoMore pruning of the perl 5.11.3 delta file
Jesse Vincent [Sat, 19 Dec 2009 22:08:28 +0000 (17:08 -0500)]
More pruning of the perl 5.11.3 delta file

14 years agoRename VMS-unfriendly multi-dot files.
Craig A. Berry [Sat, 19 Dec 2009 17:12:33 +0000 (11:12 -0600)]
Rename VMS-unfriendly multi-dot files.

14 years agoRun t/porting/diag.t from the top-level directory.
Nicholas Clark [Sat, 19 Dec 2009 16:19:43 +0000 (16:19 +0000)]
Run t/porting/diag.t from the top-level directory.

The home-grown glob on VMS does not properly handle relative paths
containing C<../> so this test has been failing for reasons having
nothng to do with what's being tested.  For now, just avoid the
problem by running from one level up.

Message-id: <20091219161943.GQ2582@plum.flirble.org>

14 years agorunperl may modify arguments passed to it.
Craig A. Berry [Sat, 19 Dec 2009 16:05:12 +0000 (10:05 -0600)]
runperl may modify arguments passed to it.

So be cautious about reusing them.  In this case, filenames acquired
quotes in them, which are not legal in filenames on VMS.

14 years agoTT is not a terminal for non-interactive processes.
Craig A. Berry [Sat, 19 Dec 2009 15:33:32 +0000 (09:33 -0600)]
TT is not a terminal for non-interactive processes.

-t correctly does not report true in this case, but the test was
assuming it would.  Since there is no equivalent to F$MODE() in
Perl, rely on the fact that in batch TT is a logical name pointing
to _NLA0:.

14 years ago* Synced the perlfaq
brian d foy [Sat, 19 Dec 2009 10:27:31 +0000 (04:27 -0600)]
* Synced the perlfaq

The latest commit in https://github.com/briandfoy/perlfaq is

    4e2e0c9bcb3404e0b09d2e61e23ba6a6095b1

dated Sat Dec 19 04:17:11 2009 -0600

14 years ago* Update perlport examples for modern Perl style
brian d foy [Sat, 19 Dec 2009 10:27:24 +0000 (04:27 -0600)]
* Update perlport examples for modern Perl style

14 years agoSorting MANIFEST
Jesse Vincent [Fri, 18 Dec 2009 22:31:44 +0000 (17:31 -0500)]
Sorting MANIFEST

14 years agoUpgrade to Pod::Simple 3.13 from CPAN to fix a regression (in 3.08) that broke html...
Jesse Vincent [Fri, 18 Dec 2009 22:05:45 +0000 (17:05 -0500)]
Upgrade to Pod::Simple 3.13 from CPAN to fix a regression (in 3.08) that broke html output

14 years agoFirst pass at cutting down the git log as a 5.11.3 changelog
Jesse Vincent [Fri, 18 Dec 2009 21:27:09 +0000 (16:27 -0500)]
First pass at cutting down the git log as a 5.11.3 changelog

14 years agoUpdate MANIFEST for the latest changes to CPAN.pm
Jesse Vincent [Fri, 18 Dec 2009 18:49:01 +0000 (13:49 -0500)]
Update MANIFEST for the latest changes to CPAN.pm

14 years agomanicheck's complaints about missing files are now closer to the form
Jesse Vincent [Fri, 18 Dec 2009 18:46:35 +0000 (13:46 -0500)]
manicheck's complaints about missing files are now closer to the form
you might want to paste into a MANIFEST

14 years agoDetabify manicheck
Jesse Vincent [Fri, 18 Dec 2009 18:45:07 +0000 (13:45 -0500)]
Detabify manicheck

14 years agoWhen discarding a token free the op associated with it
Gerard Goossen [Fri, 18 Dec 2009 17:41:00 +0000 (18:41 +0100)]
When discarding a token free the op associated with it

When discarding a token free the op associated with it.

Fixes memory leak in comp/parser.t

Gerard Goossen

From 7694ec023ec8856f34964b5eeea58f1b588c89bc Mon Sep 17 00:00:00 2001
From: Gerard Goossen <gerard@ggoossen.net>
Date: Fri, 18 Dec 2009 18:32:11 +0100
Subject: [PATCH 4/4] When discarding a token free the op associated with it.
Status: O
Content-Length: 438
Lines: 20

Fixes memory leak in comp/parser.t

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
14 years agoBring up ExtUtils::MakeMaker to 6.56 - no functional changes from 6.55_03
Jesse Vincent [Fri, 18 Dec 2009 18:07:04 +0000 (13:07 -0500)]
Bring up ExtUtils::MakeMaker to 6.56 - no functional changes from 6.55_03

14 years agoImport CPAN.pm 1.94_53 from CPAN
Jesse Vincent [Fri, 18 Dec 2009 17:47:08 +0000 (12:47 -0500)]
Import CPAN.pm 1.94_53 from CPAN

14 years agoFree the PL_scopestack_name
Gerard Goossen [Fri, 18 Dec 2009 14:11:25 +0000 (15:11 +0100)]
Free the PL_scopestack_name

Free the PL_scopestack_name

Gerard Goossen

From 4652807944b1b7efc8a66b3fe8d7562d23a2189f Mon Sep 17 00:00:00 2001
From: Gerard Goossen <gerard@ggoossen.net>
Date: Fri, 18 Dec 2009 15:09:49 +0100
Subject: [PATCH 2/2] Free the PL_scopestack_name

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
14 years agoExport PL_curinterp symbol for MULTIPLICITY without USE_ITHREADS
Jan Dubois [Fri, 18 Dec 2009 02:28:16 +0000 (18:28 -0800)]
Export PL_curinterp symbol for MULTIPLICITY without USE_ITHREADS

This is necessary for XS extensions that define PERL_CORE.  In that
situation PERL_GET_CONTEXT will resolve to PL_curinterp, which is
normally not exported (extensions call Perl_Gcurinterp_ptr() to get a
pointer to PL_curinterp instead). With USE_ITHREADS defined
PERL_GET_CONTEXT will expand to Perl_get_context() even inside the
core because the context needs to be fetched from threadlocal storage.

14 years agoCorrect some #ifdef USE_ITHREADS / USE_MULTI
Max Maischein [Thu, 17 Dec 2009 22:22:39 +0000 (23:22 +0100)]
Correct some #ifdef USE_ITHREADS / USE_MULTI

14 years agoUpdated Module::Build to 0.35_15
David Golden [Thu, 17 Dec 2009 22:59:27 +0000 (17:59 -0500)]
Updated Module::Build to 0.35_15

This is just to sync with CPAN -- these changes should not impact
blead.

0.35_15 - Thu Dec 17 17:51:22 EST 2009

 Bug fixes:

 - Make sure PPM tests are skipped if IO::File is too old [David Golden]

14 years agoUpdated Module::Build to 0.35_14
David Golden [Thu, 17 Dec 2009 21:08:09 +0000 (16:08 -0500)]
Updated Module::Build to 0.35_14

0.35_14 - Thu Dec 17 16:02:14 EST 2009

 Bug fixes:

 - If not set, the 'module_name' is detected from 'dist_version_from'
   or from 'dist_name'.  The directory is no longer used. [David Golden]

 - The 'share_dir' property no longer defaults to 'share' and must be
   explicitly set instead; this fixes problems for CPAN distributions that
   already have a 'share' directory for whatever reason [David Golden]

 - Change t/00-compile.t test for more portability [David Golden]

 - Skip ppm.t if Pod::Html is not available [David Goldenj]

 - Changed guts of inc::latest to work properly on older versions of Perl
   [David Golden]

 - Ensure bundle_inc.t doesn't accidentally uninstall the installed M::B
   during testing if the user had 'uninst=1' set during Build.PL
   [David Golden]

0.35_13 - Sat Dec  5 11:26:36 EST 2009

 Bug fixes:

 - Protect against tempfile errors when checking ExtUtils::Installed
   [David Golden]

0.35_12 - Fri Dec  4 23:06:49 EST 2009

 Bug fixes:

 - Protect inc/ bundling tests against broken ExtUtils::Installed
   [David Golden]

0.35_11 - Thu Dec  3 11:07:44 EST 2009

 *** API CHANGE ***

 - The old API for prepare_metadata() has been restored to avoid breaking
   distributions that were overriding it (e.g. BioPerl), but the method
   has been marked deprecated and may be made private or may disappear in
   some future version of Module::Build. [David Golden]

 - A new get_metadata() method has been added as a simpler wrapper around
   the old, kludgy prepare_metadata() API. [David Golden]

0.35_10 - Tue Nov 24 22:49:19 EST 2009

 Bug fixes:

 - bundle_inc.t is more careful about permissions and open filehandles
   to avoid failures/skips on Win32 [David Golden]

 - Fix compilation error in Module::Build::Platform::VMS (RT#51766)
   [David Golden]

 - Don't generate a MANIFEST.SKIP during distclean and add any generated
   MANIFEST.SKIP to cleanup list [reported by Zefram, fixed by David Golden]

 - Module::Build::ModuleInfo version parsing would fail if a module sets
   its $VERSION from another module, but the other module is not installed.
   We now try to detect such failures, prepend 'lib' to @INC and try again.
   [David Golden]

 - MYMETA.yml used to be generated from scratch, overriding any
   customizations used to create META.yml.  Now, if META.yml exists, that
   will be used as the base for MYMETA and only prereq fields will be
   updated (to reflect any dynamic configuration); also, 'dynamic_config'
   will be set to false and 'generated_by' will be updated [David Golden]

0.35_09 - Thu Nov 19 01:30:42 EST 2009

 Bug fixes:

 - The DB package should not be included in 'provides' in META files
   [David Golden]

 - Fixed t/xs.t build failures in bleadperl for noexec temp directories
   [Nicholas Clark]

 - Adjusted order of @INC in resume() (fixes par.t, ppm.t, xs.t fails):
   @INC = @new_additions_to_inc, @saved_additions_to_inc, @default_inc
   [David Golden]

 - Skip bundle_inc.t tests if bundled Module::Build for test can't be
   tweaked (Works around test crashes on Win2) [David Golden]

 Other:

 - 'C_support' is no longer an optional feature.  Modern ExtUtils::CBuilder
   and ExtUtils::ParseXS added to the 'requires' list.  This ensures that
   upgrading Module::Build will upgrade this critical modules.
   ExtUtils::CBuilder no longer requires a compiler, so it is "safe" to
   require.

14 years agoUpdated CPANPLUS to cpan release 0.90
Chris Williams [Thu, 17 Dec 2009 22:08:48 +0000 (22:08 +0000)]
Updated CPANPLUS to cpan release 0.90

  Changes for 0.90        Thu Dec 17 21:40:13 2009
  ================================================
  * Version bump

14 years agoImplement win32_isatty()
Jan Dubois [Thu, 17 Dec 2009 19:15:38 +0000 (11:15 -0800)]
Implement win32_isatty()

Commit 827da6a38 added a custom isatty() implementation
in win32/perlhost.h, but that code will only be used when
perl is compiled with -DPERL_IMPLICIT_SYS.  This change
makes sure that the custom implementation will be used
on Windows for all choices of build options.

14 years ago-t should only return TRUE for file handles connected to a TTY
Jan Dubois [Wed, 16 Dec 2009 23:42:19 +0000 (15:42 -0800)]
-t should only return TRUE for file handles connected to a TTY

The Microsoft C version of isatty() returns TRUE for all
character mode devices, including the /dev/null style "nul"
device and printers like "lpt1".

The included test has only been tested on Windows and Linux;
the device names for OS/2 and VMS are just best guesses...

14 years agoDocument issues when using named captures in combination with a branch reset pattern...
Abigail [Wed, 16 Dec 2009 13:01:32 +0000 (14:01 +0100)]
Document issues when using named captures in combination with a branch reset pattern (see also #71136)

14 years agoFix casting warnings
Rafael Garcia-Suarez [Wed, 16 Dec 2009 09:20:27 +0000 (10:20 +0100)]
Fix casting warnings

14 years agoAdd a test that "eval" does not create additional reference to ouside variables.
Gerard Goossen [Wed, 9 Dec 2009 16:23:00 +0000 (17:23 +0100)]
Add a test that "eval" does not create additional reference to ouside variables.

14 years agoStore the PL_compcv instead of the the PL_comppad in parser stack, and make it refere...
Gerard Goossen [Tue, 8 Dec 2009 19:41:28 +0000 (20:41 +0100)]
Store the PL_compcv instead of the the PL_comppad in parser stack, and make it reference counted. Properly solves [perl #66094]

14 years agotweak to pp_ctl.c gives smaller object code
Alex Davies [Wed, 16 Dec 2009 08:42:12 +0000 (09:42 +0100)]
tweak to pp_ctl.c gives smaller object code

14 years agoUpdate File::Copy tests to skip on OpenBSD, as it mounts too many filesystems nosuid.
Jesse Vincent [Wed, 16 Dec 2009 02:08:40 +0000 (21:08 -0500)]
Update File::Copy tests to skip on OpenBSD, as it mounts too many filesystems nosuid.

[perl #71334] is the TODO for a better fix for this

14 years agoAllow override of PERL5OPT etc in t/TEST
Tim Bunce [Tue, 15 Dec 2009 23:04:11 +0000 (23:04 +0000)]
Allow override of PERL5OPT etc in t/TEST

14 years agoDon't make C<use legacy> die on unknown legacy names
Rafael Garcia-Suarez [Tue, 15 Dec 2009 23:04:34 +0000 (00:04 +0100)]
Don't make C<use legacy> die on unknown legacy names

So we can use C<use legacy "qubits"> to avoid the new "qubit" behaviour,
without worrying about perls that didn't have qubit support at all. :)

14 years ago[perl #22977] Bug in format/write
Zefram [Tue, 15 Dec 2009 10:48:31 +0000 (11:48 +0100)]
[perl #22977] Bug in format/write

14 years ago[perl #68640] Wrong error for undef constant name
Zefram [Tue, 15 Dec 2009 10:17:35 +0000 (11:17 +0100)]
[perl #68640] Wrong error for undef constant name

14 years agomore regex folding tests
Karl Williamson [Mon, 14 Dec 2009 16:18:29 +0000 (09:18 -0700)]
more regex folding tests

14 years ago[perl #70171] 5.10.0 -> 5.10.1 Regression in fafafbaf70 (Big slowdown in 5.10 @_...
Father Chrysostomos [Mon, 14 Dec 2009 15:15:51 +0000 (16:15 +0100)]
[perl #70171] 5.10.0 -> 5.10.1 Regression in fafafbaf70 (Big slowdown in 5.10 @_ parameter passing)

In this case my %x = %$x assigns a hash to itself. This causes the
hv_clear in pp_aassign to wipe away the hash before it can be copied.
The ‘panic: attempt to copy freed scalar’ error is triggered by this
line, which copies the value:
    sv_setsv(tmpstr,*relem);        /* value */

The solution is to make sure the OPpASSIGN_COMMON flag is on in such
cases, so that pp_aassign copies everything before doing the assignment.

14 years agofix bug 67156: overload: nomethod(..., '!') return value inverted
Michael Breen [Fri, 11 Dec 2009 17:48:51 +0000 (17:48 +0000)]
fix bug 67156: overload: nomethod(..., '!') return value inverted

14 years ago[perl #71204] diagnostics.pm suppresses 'Use of uninitialized value in range (or...
Gene Sullivan [Mon, 14 Dec 2009 13:07:27 +0000 (14:07 +0100)]
[perl #71204] diagnostics.pm suppresses 'Use of uninitialized value in range (or flip)' warning

(and bump version of diagnostics.pm)

14 years agocygwin IPv6 since 1.7
Reini Urban [Mon, 14 Dec 2009 12:04:37 +0000 (13:04 +0100)]
cygwin IPv6 since 1.7

Use g++ as default linker
IPv6 support for 1.7

14 years ago[perl #70764] $' fails to initialized for pre-compiled regular expression matches
Father Chrysostomos [Mon, 14 Dec 2009 11:19:35 +0000 (12:19 +0100)]
[perl #70764] $' fails to initialized for pre-compiled regular expression matches

The match vars are associated with the regexp that last matched
successfully. In the case of $str =~ $qr or /$qr/, since the $qr could
be used in multiple scopes that need their own sets of match vars, the
$qr is cloned by Perl_reg_temp_copy as of change 30677/28d8d7f. This
happens in pp_regcomp before pp_match has stringified the LHS, hence the
bug. In short, /$gror/ is not equivalent to
($which = !$which) ? /$gror/ : /$gror/, which is weird.

Attached is a patch, which admittedly is a hack, but fixes this
particular side effect of what is probably a bad design, by stringifying
the LHS in pp_regcomp, and having pp_match skip get-magic in such cases.
A real fix far exceeds my capabalities, and would also be very intrusive
according to
<http://www.nntp.perl.org/group/perl.perl5.porters/2007/03/msg122415.html>.

14 years agoFix compile failure introduced in 37e2e78edfe0a224b8a615820f46db879584f523.
Craig A. Berry [Mon, 14 Dec 2009 04:17:13 +0000 (22:17 -0600)]
Fix compile failure introduced in 37e2e78edfe0a224b8a615820f46db879584f523.

Solaris, VMS, and Win32 all failed to build after this change.  In C99's
description of:

   do statement while ( expression ) ;

the trailing semicolon does not appear to be optional.  And at least
three compilers from three vendors agree.

14 years agoEliminate OP_SETSTATE from cop.h header
Reini Urban [Sun, 13 Dec 2009 07:06:43 +0000 (08:06 +0100)]
Eliminate OP_SETSTATE from cop.h header

It had been added with change 3728 to track linenumbers in
optimized else, disabled by change 4309,
and removed with change 33072.

Bump copyright, latest change was "Fix MULTICALL in List-Util" 2009-03-07
with commit 1bbbfc50

14 years agoMake new is_utf8_X_* functions public
Rafael Garcia-Suarez [Sun, 13 Dec 2009 14:47:45 +0000 (15:47 +0100)]
Make new is_utf8_X_* functions public

14 years agoDoc nits
Rafael Garcia-Suarez [Sat, 12 Dec 2009 14:57:28 +0000 (15:57 +0100)]
Doc nits

14 years agoMerge commit 'khwilliamson/x' into blead
Rafael Garcia-Suarez [Sat, 12 Dec 2009 08:33:51 +0000 (09:33 +0100)]
Merge commit 'khwilliamson/x' into blead

14 years agoNotes on why PathTools is in Cwd/
Jesse Vincent [Thu, 10 Dec 2009 18:20:27 +0000 (13:20 -0500)]
Notes on why PathTools is in Cwd/

14 years agoUpdate Cwd / PathTools to 3.31 to get us a non-devel version number based on a chat...
Jesse Vincent [Thu, 10 Dec 2009 18:14:24 +0000 (13:14 -0500)]
Update Cwd / PathTools to 3.31 to get us a non-devel version number based on a chat with Steffen. No code changes.

14 years agoUpdated to Pod::Simple 3.11 from CPAN [perl #71004]
Jesse Vincent [Thu, 10 Dec 2009 16:44:26 +0000 (11:44 -0500)]
Updated to Pod::Simple 3.11 from CPAN [perl #71004]

14 years agoUpdate CPANPLUS to cpan version 0.89_12
Chris Williams [Thu, 10 Dec 2009 12:24:16 +0000 (12:24 +0000)]
Update CPANPLUS to cpan version 0.89_12

  Changes for 0.89_12     Mon Dec  7 13:33:16 2009
  ================================================
  * Resolve RT #52348 Duplicate test output, reported by Apocalypse
  * Fixed typo in Shell::Default, RT #52376, reported by Apocalypse

  Changes for 0.89_11     Tue Dec  1 13:14:24 2009
  ================================================
  * Fixed RT #52287 reported by Apocalypse regarding
    Test::Reporter barfing on send()
  * Change SQLite to AutoCommit, resolves RT #52308,
    reported by Apocalypse

  Changes for 0.89_10     Sat Nov 28 23:20:09 2009
  ================================================
  * Resolve RT #51516 setting conf options which
    include spaces.
  * Explicitly use Cwd's chdir in _chdir()

Update to allow various perl smokers test before update to 0.90

14 years agoUpdate Archive::Extract to cpan version 0.36
Chris Williams [Thu, 10 Dec 2009 12:16:57 +0000 (12:16 +0000)]
Update Archive::Extract to cpan version 0.36

  Changes for 0.36    Tue Nov 24 10:27:16 2009
  ============================================
  * Explicitly use Cwd's chdir

Required for CPANPLUS update

14 years agoOS/2 doesn't support inplace editing without backups
Jan Dubois [Wed, 9 Dec 2009 23:55:09 +0000 (15:55 -0800)]
OS/2 doesn't support inplace editing without backups

14 years agoUpdated docpointer for illguts
Reini Urban [Wed, 9 Dec 2009 22:45:44 +0000 (17:45 -0500)]
Updated docpointer for illguts

14 years agoFix for [perl #70910] wrong line number in syntax error message
Zefram [Wed, 9 Dec 2009 22:40:05 +0000 (17:40 -0500)]
Fix for [perl #70910] wrong line number in syntax error message

14 years agoMerge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead
Andy Dougherty [Tue, 8 Dec 2009 16:53:14 +0000 (11:53 -0500)]
Merge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead

14 years agoDocument config_args limitations reported in [perl #70912]
Andy Dougherty [Tue, 8 Dec 2009 16:36:54 +0000 (11:36 -0500)]
Document config_args limitations reported in [perl #70912]

14 years agoproper error on "grep $x (1,2,3)". Solves [perl #37314]
Gerard Goossen [Tue, 8 Dec 2009 11:42:58 +0000 (12:42 +0100)]
proper error on "grep $x (1,2,3)". Solves [perl #37314]

14 years ago[perl #70802] -i'*' refuses to work
Tony Cook [Tue, 8 Dec 2009 11:48:59 +0000 (12:48 +0100)]
[perl #70802] -i'*' refuses to work

Add regression tests
(the bug was fixed by commit c9930541bfa04399c3b648e83c9b750cee1154fb)

14 years agoundef $! before running the errno tests
Bram [Sat, 1 Aug 2009 20:11:22 +0000 (22:11 +0200)]
undef $! before running the errno tests

14 years agolegalize =begin foo bar
Ricardo Signes [Mon, 7 Dec 2009 23:24:59 +0000 (18:24 -0500)]
legalize =begin foo bar

14 years agomore aggressively deprecate L<section> and L<"section">
Ricardo Signes [Mon, 7 Dec 2009 23:21:44 +0000 (18:21 -0500)]
more aggressively deprecate L<section> and L<"section">

14 years agoremove prohibition against L<text|href>
Ricardo Signes [Mon, 7 Dec 2009 23:19:28 +0000 (18:19 -0500)]
remove prohibition against L<text|href>

14 years agoAdd latest test file to MANIFEST
Rafael Garcia-Suarez [Tue, 8 Dec 2009 08:29:11 +0000 (09:29 +0100)]
Add latest test file to MANIFEST

14 years agoutf8cache test: Hugo asks, and I provide. Merry Christmas
Chip Salzenberg [Tue, 8 Dec 2009 08:17:05 +0000 (00:17 -0800)]
utf8cache test: Hugo asks, and I provide. Merry Christmas

14 years agoThrow away uncleanable scopes when exiting a pseudo-forked process.
Jan Dubois [Tue, 8 Dec 2009 01:19:18 +0000 (17:19 -0800)]
Throw away uncleanable scopes when exiting a pseudo-forked process.

Commit adab9969 tried to clean up those additional scopes, but failed
because some of the memory was allocated from a different pool. To
avoid triggering the assert() in perl_destruct() this change instead
moves the one remaining scope back to the root of the stack, effectively
discarding the additional frames without any further processing.

14 years agoThe deep arrays for testing ~~ were not deep enough
Rafael Garcia-Suarez [Mon, 7 Dec 2009 16:51:16 +0000 (17:51 +0100)]
The deep arrays for testing ~~ were not deep enough

Without commit 6bc991bfb3c34a5d286a1202fcc0d740d72dcee7, this test
would now segfault.

14 years agoFix a test that wasn’t testing was it purported to be testing
Rafael Garcia-Suarez [Mon, 7 Dec 2009 14:03:48 +0000 (15:03 +0100)]
Fix a test that wasn’t testing was it purported to be testing

(noticed by Father Chrysostomos, further modified to avoid using
too much overloaded names like foo and Foo.)

14 years ago[perl #71076] sort with active sub (5.10 regression)
Father Chrysostomos [Mon, 7 Dec 2009 13:58:40 +0000 (14:58 +0100)]
[perl #71076] sort with active sub (5.10 regression)

One of the tests in sort.t causes a bus error (or sometimes ‘Undefined
subroutine called’) if run multiple times. This is because sort
decreases the refcount of an active sub used as a comparison routine.

Ironically enough, this test was added by the very change that broke it
(25953/9850bf2).

14 years agoAllocate the right HV
Rafael Garcia-Suarez [Mon, 7 Dec 2009 12:55:49 +0000 (13:55 +0100)]
Allocate the right HV

This will solve an obscure bug in smart-match involving nested data
structures containing the same elements.

14 years agoFix [perl #71078] Smart match against @_ gives false negatives
Rafael Garcia-Suarez [Mon, 7 Dec 2009 12:41:05 +0000 (13:41 +0100)]
Fix [perl #71078] Smart match against @_ gives false negatives

@_ can contain NULLs for undefined elements

14 years agoMerge branch 'blead' of ssh://perl5.git.perl.org/perl into blead
Chip Salzenberg [Mon, 7 Dec 2009 08:57:10 +0000 (00:57 -0800)]
Merge branch 'blead' of ssh://perl5.git.perl.org/perl into blead

14 years agoFix for 7baa4690 breakage of threaded builds.
Tony Cook [Mon, 7 Dec 2009 03:43:41 +0000 (22:43 -0500)]
Fix for 7baa4690 breakage of threaded builds.

14 years agoImport ExtUtils::MakeMaker 6.55_03 from CPAN
Jesse Vincent [Sun, 6 Dec 2009 20:13:48 +0000 (15:13 -0500)]
Import ExtUtils::MakeMaker 6.55_03 from CPAN

14 years ago[perl #71000] Wrong variable name in warning
hv@crypt.org [Sun, 6 Dec 2009 21:24:39 +0000 (22:24 +0100)]
[perl #71000] Wrong variable name in warning

Add a new warning "Missing argument in %s"

14 years agoInnocently looking union member swap
Reini Urban [Sun, 6 Dec 2009 14:31:23 +0000 (14:31 +0000)]
Innocently looking union member swap

This helps statically initializing union members on gcc,
otherwise we get "initializer element is not computable at load time".
This speeds up initializing larger B::C/B::CC compiled programs with -O1/-O2 by 10%.

14 years agoqr/\X/ expansion
Karl Williamson [Sun, 6 Dec 2009 05:21:38 +0000 (22:21 -0700)]
qr/\X/ expansion

14 years agoavoid infinite chain of utf8 magic
Chip Salzenberg [Thu, 29 Oct 2009 00:08:05 +0000 (17:08 -0700)]
avoid infinite chain of utf8 magic

14 years agowhen removing magic, fix SvMAGICAL flags (unless save_magic is active)
Chip Salzenberg [Tue, 27 Oct 2009 02:39:20 +0000 (19:39 -0700)]
when removing magic, fix SvMAGICAL flags (unless save_magic is active)

14 years agopreserve readonly flag when saving and restoring magic flags
Chip Salzenberg [Wed, 28 Oct 2009 23:41:02 +0000 (16:41 -0700)]
preserve readonly flag when saving and restoring magic flags

14 years agot/test.pl fresh_perl_like() bug
hv@crypt.org [Sat, 5 Dec 2009 00:50:02 +0000 (18:50 -0600)]
t/test.pl fresh_perl_like() bug

The existing code does the wrong thing if a string (rather than a compiled
regexp) is supplied for $expected. Happily perl will do the right thing
if you let it.

Hugo

Message-Id: <200912041444.nB4EiqBj004436@zen.crypt.org>

14 years agoPort lib/unicore/mktables to VMS.
Craig A. Berry [Fri, 4 Dec 2009 23:48:27 +0000 (17:48 -0600)]
Port lib/unicore/mktables to VMS.

This is mostly just making filename comparisons and lookups of filenames
in hashes case blind, which is necessary since filename case is not
(by default) preserved.

14 years agoSilence Win32 compiler warning
Nicholas Clark [Fri, 4 Dec 2009 15:16:04 +0000 (15:16 +0000)]
Silence Win32 compiler warning

Subject: Re: Smoke [5.11.2] v5.11.2-105-gc2123ae FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu)
Message-ID: <20091204140536.GD2582@plum.flirble.org>

(amended to fix the obvious typo)

14 years agopp_sort.c typo: stabilty
Reini Urban [Thu, 3 Dec 2009 19:47:55 +0000 (20:47 +0100)]
pp_sort.c typo: stabilty

I'm now working on the sort code in th perl compiler as you can see :)
--
Reini Urban
http://phpwiki.org/  http://murbreak.at/

From b8c749be70f51499fe1ffd9e483ee3a0a8305d9b Mon Sep 17 00:00:00 2001
From: Reini Urban <rurban@cpan.org>
Date: Thu, 3 Dec 2009 19:44:57 +0000
Subject: [PATCH] fix typo: stabilty

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
14 years agoAnother C<return NORMAL> needed post bb4c52e023e0, missed from 805bf316c58a.
Nicholas Clark [Thu, 3 Dec 2009 10:07:51 +0000 (10:07 +0000)]
Another C<return NORMAL> needed post bb4c52e023e0, missed from 805bf316c58a.

14 years agoRevert makefile part of the Unicode 5.2 patch
Rafael Garcia-Suarez [Thu, 3 Dec 2009 10:34:08 +0000 (11:34 +0100)]
Revert makefile part of the Unicode 5.2 patch

lib/unicore/version was getting removed by "make distclean".

14 years agoAdd new Unicode data file in MANIFEST
Rafael Garcia-Suarez [Thu, 3 Dec 2009 10:25:12 +0000 (11:25 +0100)]
Add new Unicode data file in MANIFEST

14 years agoUnicode 5.2
Karl Williamson [Thu, 3 Dec 2009 04:36:17 +0000 (21:36 -0700)]
Unicode 5.2

14 years ago[perl #70802] -i'*' refuses to work
Tony Cook [Thu, 3 Dec 2009 09:20:09 +0000 (10:20 +0100)]
[perl #70802] -i'*' refuses to work

14 years agoEnsure that pp_qr returns a new regexp SV each time. Resolves RT #69852.
Nicholas Clark [Wed, 2 Dec 2009 16:01:10 +0000 (16:01 +0000)]
Ensure that pp_qr returns a new regexp SV each time. Resolves RT #69852.

Instead of returning a(nother) reference to the (pre-compiled) regexp in the
optree, use reg_temp_copy() to create a copy of it, and return a reference to
that. This resolves issues about Regexp::DESTROY not being called in a timely
fashion (the original bug tracked by RT #69852), as well as bugs related to
blessing regexps, and of assigning to regexps, as described in correspondence
added to the ticket.

It transpires that we also need to undo the SvPVX() sharing when ithreads
cloning a Regexp SV, because mother_re is set to NULL, instead of a cloned
copy of the mother_re. This change might fix bugs with regexps and threads in
certain other situations, but as yet neither tests nor bug reports have
indicated any problems, so it might not actually be an edge case that it's
possible to reach.

14 years agowork-around Carp/overloading miniperl problem
Karl Williamson [Tue, 1 Dec 2009 05:32:23 +0000 (22:32 -0700)]
work-around Carp/overloading miniperl problem

14 years agoCleanup all scopes before exiting a pseudo-forked process.
Jan Dubois [Wed, 2 Dec 2009 09:34:18 +0000 (01:34 -0800)]
Cleanup all scopes before exiting a pseudo-forked process.

perl_destruct() contains an assertion that the scope stack
is empty.  The remaining scopes are due to fork() being
called from within a BEGIN block.

14 years agoRevert commit cbdd5331.
Jan Dubois [Wed, 2 Dec 2009 07:11:03 +0000 (23:11 -0800)]
Revert commit cbdd5331.

Commit a09dc31d1 says:

    It's possible that someone has built a module with -DDEBUGGING,
    but they're using it against a perl built non-DEBUGGING, [...]

which means that the PL_scopestack_name symbol must always be exported.

14 years agoAdd another hint about setting WIN64=undef to build a 32-bit Perl.
Jan Dubois [Wed, 2 Dec 2009 07:03:09 +0000 (23:03 -0800)]
Add another hint about setting WIN64=undef to build a 32-bit Perl.

Of course anyone who read README.win32 already knew this. :)

14 years agoDon't redefine isnan() macro if MinGW already defined one.
Jan Dubois [Wed, 2 Dec 2009 06:55:55 +0000 (22:55 -0800)]
Don't redefine isnan() macro if MinGW already defined one.

14 years agoUpdate to reflect that I release 5.11.2
Leon Brocard [Tue, 1 Dec 2009 13:45:42 +0000 (13:45 +0000)]
Update to reflect that I release 5.11.2

14 years ago-Dmad: double free or corruption
Tony Cook [Tue, 1 Dec 2009 11:25:39 +0000 (22:25 +1100)]
-Dmad: double free or corruption

> If your perl has -Dmad, the following program crashes:
>
> $ bleadperl -we '$x="x" x 257; eval "for $x"'
> *** glibc detected *** bleadperl: double free or corruption (!prev): 0x0000000001dca670 ***

Change 6136c704 changed S_scan_ident from:

   e = d + destlen - 3;

to:

   register char * const e = d + destlen + 3;

where e is used to mark the end of the buffer, this meant that the
various buffer end checks allowed the various buffers supplied
S_scan_ident to overflow.

Attached is a fix, various tests with fencepost checks on different
identifier lengths, and the specific case mentioned in the ticket.

Tony

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
14 years agomake regen_perly following 5ca68648d92617d8.
Nicholas Clark [Tue, 1 Dec 2009 11:25:37 +0000 (11:25 +0000)]
make regen_perly following 5ca68648d92617d8.