This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
15 years agoImprove and restructure t/op/pat.t and split out some unicode related tests into...
Abigail [Tue, 18 Nov 2008 09:29:05 +0000 (10:29 +0100)]
Improve and restructure t/op/pat.t and split out some unicode related tests into a new test file

Subject: t/op/pat.t
Message-ID: <20081118082905.GJ3172@almanda>

With tweaks: Seems the new harness is quite picky about # signs in test names,
and doesnt like SKIP and TODO to be used together.

p4raw-id: //depot/perl@34882

15 years agoRe: 5.8.9 RC1 patches for AIX
Rainer Tammer [Tue, 18 Nov 2008 12:58:27 +0000 (13:58 +0100)]
Re: 5.8.9 RC1 patches for AIX
Message-ID: <4922ADE3.5030701@tammer.net>

p4raw-id: //depot/perl@34881

15 years agoUse only unsigned ints for comparisons to PL_breakable_sub_generation
Rafael Garcia-Suarez [Tue, 18 Nov 2008 11:12:56 +0000 (11:12 +0000)]
Use only unsigned ints for comparisons to PL_breakable_sub_generation

p4raw-id: //depot/perl@34880

15 years agoRafael noticed a bug in 34873 - I was comparing against the wrong
Nicholas Clark [Tue, 18 Nov 2008 11:09:47 +0000 (11:09 +0000)]
Rafael noticed a bug in 34873 - I was comparing against the wrong
variable, and hence (usually) saving all globs, not just those that
should be kept.

p4raw-id: //depot/perl@34879

15 years agoChange LONG_DOUBLESIZE macros to match config (ref change 34823)
Gisle Aas [Mon, 17 Nov 2008 22:56:42 +0000 (22:56 +0000)]
Change LONG_DOUBLESIZE macros to match config (ref change 34823)

p4raw-id: //depot/perl@34877

15 years agoS_save_lines() was using strchr() when it should have been using
Nicholas Clark [Mon, 17 Nov 2008 22:54:17 +0000 (22:54 +0000)]
S_save_lines() was using strchr() when it should have been using
memchr(). Result - eval""ed source with embedded NULs was not split
correctly into lines for the debugger. Obscure. But still a bug.
Maybe the Campaign for the Elimination of strlen() needs to take a long
hard stare at every strchr() too. And strmp() while we're looking.

p4raw-id: //depot/perl@34876

15 years agoNo need to str*cpy() a string of known fixed length ("_<(eval )") when
Nicholas Clark [Mon, 17 Nov 2008 22:31:07 +0000 (22:31 +0000)]
No need to str*cpy() a string of known fixed length ("_<(eval )") when
a simple 1 byte write has the same desired effect.
Clearly the Campaign for the Elimination of strlen() needs to branch
out into str*cat() and str*cpy().

p4raw-id: //depot/perl@34874

15 years agoFix the bug introduced with MRO, whereby the internals were not saving
Nicholas Clark [Mon, 17 Nov 2008 22:04:56 +0000 (22:04 +0000)]
Fix the bug introduced with MRO, whereby the internals were not saving
lines in subroutines defined inside eval ""s for the debugger.

p4raw-id: //depot/perl@34873

15 years agoFix a missing single quote in hints/solaris_2.sh
Andy Dougherty [Mon, 17 Nov 2008 13:11:59 +0000 (08:11 -0500)]
Fix a missing single quote in hints/solaris_2.sh
Message-ID: <Pine.LNX.4.64.0811171300350.16632@fractal.phys.lafayette.edu>
Date: Mon, 17 Nov 2008 13:11:59 -0500 (EST)

p4raw-id: //depot/perl@34870

15 years ago[perl #58428][PATCH] Unicode::UCD::charinfo() does not work on 21 Han codepoints
Renee Baecker [Sun, 31 Aug 2008 11:35:45 +0000 (13:35 +0200)]
[perl #58428][PATCH] Unicode::UCD::charinfo() does not work on 21 Han codepoints
Message-Id: <20080831093545.A15C4120011@rserv16.sitepush.net>

p4raw-id: //depot/perl@34867

15 years agoSkip two tests under ithreads, where the constant lives in the pad.
Rafael Garcia-Suarez [Mon, 17 Nov 2008 10:06:08 +0000 (10:06 +0000)]
Skip two tests under ithreads, where the constant lives in the pad.

p4raw-id: //depot/perl@34864

15 years agoUpgrade to Attribute::Handlers 0.81
Rafael Garcia-Suarez [Mon, 17 Nov 2008 08:30:52 +0000 (08:30 +0000)]
Upgrade to Attribute::Handlers 0.81

p4raw-id: //depot/perl@34862

15 years agoRe: 5.8.9 RC1 report
Rainer Tammer [Mon, 17 Nov 2008 08:53:34 +0000 (09:53 +0100)]
Re: 5.8.9 RC1 report
Message-ID: <492122FE.5020001@tammer.net>

p4raw-id: //depot/perl@34861

15 years agoRe: [perl #59998] [PATCH] crypt() returns tainted data even when input strings are...
Chip Salzenberg [Sun, 16 Nov 2008 23:14:30 +0000 (15:14 -0800)]
Re: [perl #59998] [PATCH] crypt() returns tainted data even when input strings are detainted
Message-ID: <20081117071429.GD5495@tytlal.topaz.cx>

p4raw-id: //depot/perl@34860

15 years agoAdd a $VERSION, strict and some documentation to Tie::StdHandle.
Nicholas Clark [Sun, 16 Nov 2008 23:05:35 +0000 (23:05 +0000)]
Add a $VERSION, strict and some documentation to Tie::StdHandle.

p4raw-id: //depot/perl@34859

15 years agoIntegrate:
Nicholas Clark [Sun, 16 Nov 2008 21:38:30 +0000 (21:38 +0000)]
Integrate:
[ 34841]
Change 34693 introduced a regression spotted by Devel::SmallProf.
p4raw-link: @34841 on //depot/maint-5.8/perl: 95d1ca54dd69844873c9f0e6981fcfd632fa4274

p4raw-id: //depot/perl@34857
p4raw-integrated: from //depot/maint-5.8/perl@34854 'merge in' pp_ctl.c
(@34726..)

15 years agoSync up with Digest-MD5-2.38 from CPAN
Gisle Aas [Sun, 16 Nov 2008 20:53:15 +0000 (20:53 +0000)]
Sync up with Digest-MD5-2.38 from CPAN

p4raw-id: //depot/perl@34854

15 years agoRe: 5.8.9 RC1 report
Rainer Tammer [Thu, 13 Nov 2008 15:14:46 +0000 (16:14 +0100)]
Re: 5.8.9 RC1 report
Message-ID: <491C3656.3010509@tammer.net>

p4raw-id: //depot/perl@34852

15 years agoMake B::walksymtable not recurse into packages that are actually main::, but have...
Florian Ragwitz [Thu, 13 Nov 2008 21:34:12 +0000 (22:34 +0100)]
Make B::walksymtable not recurse into packages that are actually main::, but have a different name.
Message-Id: <1226608453-25937-1-git-send-email-rafl@debian.org>

p4raw-id: //depot/perl@34845

15 years agoDeparse inlined constants.
Florian Ragwitz [Thu, 13 Nov 2008 21:34:13 +0000 (22:34 +0100)]
Deparse inlined constants.
Message-Id: <1226608453-25937-2-git-send-email-rafl@debian.org>

p4raw-id: //depot/perl@34844

15 years agoAdd Tom Wyant to AUTHORS.
Nicholas Clark [Sun, 16 Nov 2008 17:42:53 +0000 (17:42 +0000)]
Add Tom Wyant to AUTHORS.

p4raw-id: //depot/perl@34843

15 years agoTODO for fixing lvalue subs in the debugger is now to-done. Pointed
Steve Peters [Sun, 16 Nov 2008 17:07:24 +0000 (17:07 +0000)]
TODO for fixing lvalue subs in the debugger is now to-done.  Pointed
out by Florian Ragwitz.

p4raw-id: //depot/perl@34840

15 years agoMRO tests for isa() and package aliases
Torsten Schoenfeld [Sat, 15 Nov 2008 21:24:40 +0000 (22:24 +0100)]
MRO tests for isa() and package aliases
Message-ID: <491F3008.4060205@gmx.de>

p4raw-id: //depot/perl@34839

15 years agoUpgrade to File-Temp-0.21
Steve Peters [Sun, 16 Nov 2008 06:31:56 +0000 (06:31 +0000)]
Upgrade to File-Temp-0.21

p4raw-id: //depot/perl@34838

15 years agoAdd a dump to help tracing taint bugs, by Chip Salzenberg
Rafael Garcia-Suarez [Sat, 15 Nov 2008 10:15:22 +0000 (10:15 +0000)]
Add a dump to help tracing taint bugs, by Chip Salzenberg

p4raw-id: //depot/perl@34837

15 years agoForgot to include lib/perl5db.pl in change #34833
Steve Peters [Fri, 14 Nov 2008 19:17:13 +0000 (19:17 +0000)]
Forgot to include lib/perl5db.pl in change #34833
p4raw-link: @34833 on //depot/perl: 1ad62f649328dc563f7f21be3c384f5adf18af1d

p4raw-id: //depot/perl@34836

15 years agoFuture-proof hints/linux.sh against Sun's cc -V output.
Andy Dougherty [Fri, 14 Nov 2008 13:01:13 +0000 (08:01 -0500)]
Future-proof hints/linux.sh against Sun's cc -V output.
Message-ID: <Pine.LNX.4.64.0811141300220.6539@fractal.phys.lafayette.edu>

p4raw-id: //depot/perl@34835

15 years agoVarious patches added to RT #21568 from julian@mehnle.net.
Steve Peters [Fri, 14 Nov 2008 15:12:18 +0000 (15:12 +0000)]
Various patches added to RT #21568 from julian@mehnle.net.

p4raw-id: //depot/perl@34834

15 years ago[perl #48489] patch to fix perl bug #7013
bharanee rathna [Tue, 11 Dec 2007 15:25:21 +0000 (07:25 -0800)]
[perl #48489] patch to fix perl bug #7013
From: "bharanee rathna" (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-28750-1197415521-1978.48489-75-0@perl.org>

Just the pp_hot.c portion of this patch applied along with removing
the TODO from the test added in the previous change.

p4raw-id: //depot/perl@34833

15 years agoAdd TODO test for :lvalue under -d.
Florian Ragwitz [Fri, 14 Nov 2008 11:24:57 +0000 (12:24 +0100)]
Add TODO test for :lvalue under -d.
Message-Id: <1226658297-24025-1-git-send-email-rafl@debian.org>

p4raw-id: //depot/perl@34832

15 years ago[perl #948] [PATCH] Allow tied $,
Chip Salzenberg [Fri, 14 Nov 2008 00:44:36 +0000 (16:44 -0800)]
[perl #948] [PATCH] Allow tied $,
Message-ID: <20081114084436.GJ5779@tytlal.topaz.cx>

p4raw-id: //depot/perl@34831

15 years agoFix error message label
Rafael Garcia-Suarez [Thu, 13 Nov 2008 10:57:27 +0000 (10:57 +0000)]
Fix error message label
(noticed by Abigail)

p4raw-id: //depot/perl@34830

15 years agoRe: [perl #60360] [PATCH] UPDATED: local $SIG{FOO} = sub {...}; sets signal handler...
Chip Salzenberg [Wed, 12 Nov 2008 15:45:04 +0000 (07:45 -0800)]
Re: [perl #60360] [PATCH] UPDATED: local $SIG{FOO} = sub {...}; sets signal handler to SIG_DFL
Message-ID: <20081112234504.GI2062@tytlal.topaz.cx>

Updated patch to retain source compatibility.

Plus using the correct PERL_ARGS_ASSERT_SAVE_HELEM_FLAGS
macro and running make regen.

p4raw-id: //depot/perl@34829

15 years agoBump ExtUtils-Install to 1.52 (because of CPAN persnickityness)
Yves Orton [Wed, 12 Nov 2008 19:47:21 +0000 (19:47 +0000)]
Bump ExtUtils-Install to 1.52 (because of CPAN persnickityness)

CPAN these days objects to "world writable" files in CPAN tar files,
which is what you'll get if you dev on a win32 box with "normal"
permissions and do a nmake dist.

And of course thats what I was doing with ExtUtils-Install,
and so CPAN rejected 1.51. Thus I changed permissions and rereleased
and this is the equivalent change to blead. /grrr

p4raw-id: //depot/perl@34828

15 years agoUpdate ExtUtils-Install to 1.51
Yves Orton [Wed, 12 Nov 2008 19:23:38 +0000 (19:23 +0000)]
Update ExtUtils-Install to 1.51

Also adds the Changes file from ExtUtils-Install as Changes_EU-Install

p4raw-id: //depot/perl@34827

15 years agoSome deprecated warnings were also in the syntax category
Rafael Garcia-Suarez [Wed, 12 Nov 2008 15:14:19 +0000 (15:14 +0000)]
Some deprecated warnings were also in the syntax category
(one of them was spotted by Abigail.)
Plus, document the undocumented warning
"Use of comma-less variable list is deprecated"

p4raw-id: //depot/perl@34825

15 years agoSkip #ifdefs and other preprocessor lines when parsing the
Gisle Aas [Wed, 12 Nov 2008 14:50:14 +0000 (14:50 +0000)]
Skip #ifdefs and other preprocessor lines when parsing the
local_patches section of patchlevel.h.

p4raw-id: //depot/perl@34824

15 years agosizeof(long double) is 8 bytes for all Microsoft compilers
Gisle Aas [Wed, 12 Nov 2008 12:30:19 +0000 (12:30 +0000)]
sizeof(long double) is 8 bytes for all Microsoft compilers
from Jan Dubois

p4raw-id: //depot/perl@34823

15 years agoPOD markup fix
Gisle Aas [Wed, 12 Nov 2008 12:13:03 +0000 (12:13 +0000)]
POD markup fix

p4raw-id: //depot/perl@34822

15 years agoRegenerate API docs
Rafael Garcia-Suarez [Wed, 12 Nov 2008 10:42:21 +0000 (10:42 +0000)]
Regenerate API docs

p4raw-id: //depot/perl@34820

15 years agoRe: [perl #60360] [PATCH] local $SIG{FOO} = sub {...}; sets signal
Chip Salzenberg [Mon, 10 Nov 2008 16:00:40 +0000 (08:00 -0800)]
Re: [perl #60360] [PATCH] local $SIG{FOO} = sub {...}; sets signal
Message-ID: <20081111000040.GB19329@tytlal.topaz.cx>

p4raw-id: //depot/perl@34819

15 years agoSync up with Digest-MD5-2.37 from CPAN
Gisle Aas [Wed, 12 Nov 2008 09:40:43 +0000 (09:40 +0000)]
Sync up with Digest-MD5-2.37 from CPAN

p4raw-id: //depot/perl@34818

15 years agoIntegrate:
Nicholas Clark [Wed, 12 Nov 2008 09:18:13 +0000 (09:18 +0000)]
Integrate:
[ 34811]
Hopefully today.
p4raw-link: @34811 on //depot/maint-5.8/perl: fe4320b5dc40bba015edd810dd349568512306ff

p4raw-id: //depot/perl@34817
p4raw-integrated: from //depot/maint-5.8/perl@34815 'copy in'
pod/perlhist.pod (@33192..)

15 years agoRelocations errors with Intel CC 10 on 64 bits archs
Vincent Pit [Tue, 11 Nov 2008 15:58:07 +0000 (16:58 +0100)]
Relocations errors with Intel CC 10 on 64 bits archs
Message-ID: <49199D7F.7030304@profvince.com>

p4raw-id: //depot/perl@34815

15 years agoadd -t (tabular option) to Porting/corecpan.pl
Dave Mitchell [Mon, 10 Nov 2008 23:28:35 +0000 (23:28 +0000)]
add -t (tabular option) to Porting/corecpan.pl
This allows multiple source trees to be compared

p4raw-id: //depot/perl@34814

15 years agoAllow lvalue usage of SvRV() and add MUTABLE_SV() check.
Marcus Holland-Moritz [Mon, 10 Nov 2008 19:13:20 +0000 (19:13 +0000)]
Allow lvalue usage of SvRV() and add MUTABLE_SV() check.
Also add new SvRV_const() macro for read-only access.

p4raw-id: //depot/perl@34804

15 years agoUpdate Maintainers.pl
Steffen Mueller [Mon, 10 Nov 2008 09:41:40 +0000 (10:41 +0100)]
Update Maintainers.pl
Message-ID: <20081110084141.12299.qmail@lists.develooper.com>

p4raw-id: //depot/perl@34792

15 years ago[patch@34779] Get posix exit mode working/tested on VMS
John E. Malmberg [Sun, 9 Nov 2008 00:46:03 +0000 (18:46 -0600)]
[patch@34779] Get posix exit mode working/tested on VMS
From: "John E. Malmberg" <wb8tyw@qsl.net>
Message-id: <4916872B.5040500@qsl.net>

p4raw-id: //depot/perl@34790

15 years agoBackslashes inside '' inside Makefiles seem to be non-portable in their
Nicholas Clark [Mon, 10 Nov 2008 11:58:41 +0000 (11:58 +0000)]
Backslashes inside '' inside Makefiles seem to be non-portable in their
effects. GNU make leaves them in as literals, BSD make takes them out.
Not that we noticed, as the construction in question was valid Perl
syntax either way, but File::Find 1.14 is enforcing more on its
arguments.

p4raw-id: //depot/perl@34789

15 years ago[perl #57926][PATCH] File::Find Bug
Renee Baecker [Fri, 22 Aug 2008 16:42:02 +0000 (18:42 +0200)]
[perl #57926][PATCH] File::Find Bug
Message-Id: <20080822144202.659AB99C002@rserv16.sitepush.net>

p4raw-id: //depot/perl@34786

15 years agoAdd support for testing when under
Yves Orton [Sun, 9 Nov 2008 21:02:01 +0000 (21:02 +0000)]
Add support for testing when under

#define PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS = 0

as signalled by the environment variable REAL_POSIX_CC being true.

Otherwise test are as they used to be, or TODO'ed.

p4raw-id: //depot/perl@34785

15 years agoUpgrade to File::Path 2.07
Nicholas Clark [Sun, 9 Nov 2008 19:54:42 +0000 (19:54 +0000)]
Upgrade to File::Path 2.07

p4raw-id: //depot/perl@34784

15 years agoFix warning code in Perl_sv_vcatpvfn() to make the TODO
Marcus Holland-Moritz [Sun, 9 Nov 2008 13:42:58 +0000 (13:42 +0000)]
Fix warning code in Perl_sv_vcatpvfn() to make the TODO
tests introduced with #34781 pass. Add some more warning
tests to t/lib/warnings/sv.

p4raw-id: //depot/perl@34783

15 years agodiagnostic leakage in ext/PerlIO/scalar/t/scalar_ungetc.t
Michael G. Schwern [Sat, 8 Nov 2008 23:22:54 +0000 (15:22 -0800)]
diagnostic leakage in ext/PerlIO/scalar/t/scalar_ungetc.t
Message-ID: <49168FCE.8020105@pobox.com>

Plus converting the whole file from DOS to UNIX format
and adding a newline at the end.

p4raw-id: //depot/perl@34782

15 years agoUpdate format warning tests to expect "%lld" instead of "%d"
Marcus Holland-Moritz [Sun, 9 Nov 2008 09:52:31 +0000 (09:52 +0000)]
Update format warning tests to expect "%lld" instead of "%d"
when "%lld" was in the format string. Mark these warnings as
TODO until this is fixed.

p4raw-id: //depot/perl@34781

15 years ago"Perl_newSVpvf("%lld")" is broken
Hugo van der Sanden [Sat, 8 Nov 2008 13:29:57 +0000 (13:29 +0000)]
"Perl_newSVpvf("%lld")" is broken
Message-Id: <200811081329.mA8DTv7e018896@zen.crypt.org>

Plus some test cases.

p4raw-id: //depot/perl@34780

15 years agoMake sure PerlIO::via doesn't leave its old GV's hanging
Marcus Holland-Moritz [Sat, 8 Nov 2008 18:31:09 +0000 (18:31 +0000)]
Make sure PerlIO::via doesn't leave its old GV's hanging
in the stash they were created in. Steal the idea from
IO::File to just delete the stash entry after creating
the GV.
This fixes perl #59268.

p4raw-id: //depot/perl@34779

15 years agoFrom change #34775, reverting perlio.c change for now. Also,
Steve Peters [Sat, 8 Nov 2008 15:51:45 +0000 (15:51 +0000)]
From change #34775, reverting perlio.c change for now.  Also,
setting the tests to TODO.
p4raw-link: @34775 on //depot/perl: 2556f95e0f4f5e8e95c9766374614ab52edefe3d

p4raw-id: //depot/perl@34778

15 years agoRe: [PATCH: Configure/NDBM_File] Add prototype detection for NDBM header files
Marcus Holland-Moritz [Sat, 8 Nov 2008 09:45:22 +0000 (10:45 +0100)]
Re: [PATCH: Configure/NDBM_File] Add prototype detection for NDBM header files
Message-ID: <20081108094522.5174608b@r2d2>

p4raw-id: //depot/perl@34777

15 years agoAssigning to DEFSV leaks if PL_defgv's gp_sv isn't set.
Marcus Holland-Moritz [Sat, 8 Nov 2008 12:38:36 +0000 (12:38 +0000)]
Assigning to DEFSV leaks if PL_defgv's gp_sv isn't set.
As Nicholas already noted in a FIXME, assigning to DEFSV should
use GvSV instead of GvSVn. This change ensures that, at least
under -DPERL_CORE, DEFSV cannot be assigned to and introduces
a DEFSV_set macro to allow setting DEFSV.
This fixes #53038: map leaks memory.

p4raw-id: //depot/perl@34776

15 years agoRe: [perl #56644] PerlIO resource leaks on open() and then :pop in :unix and :stdio
Goro Fuji [Mon, 7 Jul 2008 08:04:52 +0000 (17:04 +0900)]
Re: [perl #56644] PerlIO resource leaks on open() and then :pop in :unix and :stdio
From: "Goro Fuji" <gfuji@cpan.org>
Message-ID: <efb9c59b0807061604q476025e9n85893f131a6bf23e@mail.gmail.com>

p4raw-id: //depot/perl@34775

15 years ago[perl #54828] perlio.c has a problem (both 5.8 and 5.10)
Goro Fuji [Sun, 25 May 2008 23:10:42 +0000 (16:10 -0700)]
[perl #54828] perlio.c has a problem (both 5.8 and 5.10)
From: "Goro Fuji" (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-11257-1211782242-1590.54828-75-0@perl.org>

The second part of the patch.  The first part was in change #33978.
p4raw-link: @33978 on //depot/perl: 9d97e8b8cac47626e28c79994e7ab0d5c8589515

p4raw-id: //depot/perl@34774

15 years agoRe: [perl #57322] perlbug AutoReply: ungetc() to :scalar might cause problems
Goro Fuji [Sun, 27 Jul 2008 14:37:45 +0000 (23:37 +0900)]
Re: [perl #57322] perlbug AutoReply: ungetc() to :scalar might cause problems
From: "Goro Fuji" <gfuji@cpan.org>
Message-ID: <efb9c59b0807262237r62497f36g4f6d6881bb684a53@mail.gmail.com>

p4raw-id: //depot/perl@34773

15 years ago[perl #18306] This problem seems to be fixed and a small patch for B::Xref
Renee Baecker [Wed, 9 Jul 2008 15:16:50 +0000 (17:16 +0200)]
[perl #18306] This problem seems to be fixed and a small patch for B::Xref
Message-Id: <20080709131650.D12BF120041@rserv16.sitepush.net>

p4raw-id: //depot/perl@34772

15 years agoNDBM prototype config vars for configure.com following 34756.
Craig A. Berry [Sat, 8 Nov 2008 00:13:43 +0000 (00:13 +0000)]
NDBM prototype config vars for configure.com following 34756.

p4raw-id: //depot/perl@34771

15 years agoRevert SvPVX() to allow lvalue usage, but also add a
Marcus Holland-Moritz [Fri, 7 Nov 2008 22:33:39 +0000 (22:33 +0000)]
Revert SvPVX() to allow lvalue usage, but also add a
MUTABLE_SV() check. Use SvPVX_const() instead of SvPVX()
where only a const SV* is available. Also fix two falsely
consted pointers in Perl_sv_2pv_flags().

p4raw-id: //depot/perl@34770

15 years agocreate new unicode props as defined in POSIX spec (optionally use them in the regex...
Yves Orton [Fri, 7 Nov 2008 20:20:21 +0000 (20:20 +0000)]
create new unicode props as defined in POSIX spec (optionally use them in the regex engine)

Perlbug #60156 and #49302 (and probably others) resolve down to the problem
that the definition of \s and \w and \d and the POSIX charclasses are different
for unicode strings and for non-unicode strings. This broke the character class
logic in the regex engine. The easiest fix to make the character class logic sane
again is to define new properties which do match.

This change creates new property classes that can be used instead of the
traditional ones (it does not change the previously defined ones). If the
define in regcomp.h:

#define PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS 1

is changed to 0, then the new mappings will be used. This will fix a bunch
of bugs that are reported as TODO items in the new reg_posixcc.t test file.

p4raw-id: //depot/perl@34769

15 years agoA small refactoring based on a comment in an old RT ticket (RT
Steve Peters [Fri, 7 Nov 2008 17:23:05 +0000 (17:23 +0000)]
A small refactoring based on a comment in an old RT ticket (RT
#4362 in case you were wondering).

p4raw-id: //depot/perl@34768

15 years agoMake sure inversion sign is shown in all anyof classes that we show in regprop
Yves Orton [Fri, 7 Nov 2008 11:45:22 +0000 (11:45 +0000)]
Make sure inversion sign is shown in all anyof classes that we show in regprop

And refactor the code that adds the extra braces into a macro, and make it support the colorization stuff.

p4raw-id: //depot/perl@34766

15 years agoUpgrade to Pod-Perldoc-3.15
Steve Hay [Fri, 7 Nov 2008 11:32:36 +0000 (11:32 +0000)]
Upgrade to Pod-Perldoc-3.15

p4raw-id: //depot/perl@34765

15 years agoOops, change 34762 should have bumped the VERSION
Steve Hay [Fri, 7 Nov 2008 10:39:27 +0000 (10:39 +0000)]
Oops, change 34762 should have bumped the VERSION

p4raw-id: //depot/perl@34764

15 years agoTemporary (?) fix for ext/Test/Harness/t/compat/regression.t,
Steve Hay [Fri, 7 Nov 2008 10:37:51 +0000 (10:37 +0000)]
Temporary (?) fix for ext/Test/Harness/t/compat/regression.t,
broken by Test-Simple upgrade (VERSION is already bumped by the
retention of 34491)

p4raw-id: //depot/perl@34763

15 years agoFix test broken by Test-Simple upgrade (similar to change 33689)
Steve Hay [Fri, 7 Nov 2008 10:34:28 +0000 (10:34 +0000)]
Fix test broken by Test-Simple upgrade (similar to change 33689)

p4raw-id: //depot/perl@34762

15 years agoUpgrade to Test-Simple-0.85_01, keeping local changes 34491 and 34545
Steve Hay [Fri, 7 Nov 2008 10:32:32 +0000 (10:32 +0000)]
Upgrade to Test-Simple-0.85_01, keeping local changes 34491 and 34545

p4raw-id: //depot/perl@34761

15 years agolib/Test/Tutorial.pod is part of Test-Simple
Steve Hay [Fri, 7 Nov 2008 09:29:42 +0000 (09:29 +0000)]
lib/Test/Tutorial.pod is part of Test-Simple

p4raw-id: //depot/perl@34760

15 years agoFix new test (just added by podlators upgrade) on Win32, at least
Steve Hay [Fri, 7 Nov 2008 08:49:25 +0000 (08:49 +0000)]
Fix new test (just added by podlators upgrade) on Win32, at least

p4raw-id: //depot/perl@34759

15 years agoUpgrade to podlators-2.2.0
Steve Hay [Fri, 7 Nov 2008 08:47:26 +0000 (08:47 +0000)]
Upgrade to podlators-2.2.0

p4raw-id: //depot/perl@34758

15 years agoNDBM just isn't meant to be used with C++. So this
Marcus Holland-Moritz [Thu, 6 Nov 2008 22:16:03 +0000 (22:16 +0000)]
NDBM just isn't meant to be used with C++. So this
change makes the intro of NDBM_File.xs even uglier,
but hopefully it also makes tests pass now.

p4raw-id: //depot/perl@34757

15 years agoAdd prototype detection for NDBM header files
Marcus Holland-Moritz [Mon, 3 Nov 2008 22:40:11 +0000 (23:40 +0100)]
Add prototype detection for NDBM header files
Message-ID: <20081103224011.26c223b3@r2d2>

p4raw-id: //depot/perl@34756

15 years agoVarious changes to regex diagnostics and testing
Yves Orton [Thu, 6 Nov 2008 18:48:28 +0000 (18:48 +0000)]
Various changes to regex diagnostics and testing

* Make ANYOF output from regprop easier to read by adding ][ in between the unicode representation and the "ascii" one

* Make it possible to make tests in re_tests todo.

* add a todo test for a complementary character class match that should fail (perl #60156)

* Also add a comment explaining a previous commit (relating to perl #60344)

p4raw-id: //depot/perl@34755

15 years agoReolve perlbug #59328: In re's, \N{U+...} doesn't match for ... > 256
karl williamson [Wed, 5 Nov 2008 18:42:16 +0000 (11:42 -0700)]
Reolve perlbug #59328: In re's, \N{U+...} doesn't match for ... > 256

  Subject: PATCH [perl #59328] In re's, \N{U+...} doesn't match for ... > 256
  Message-ID: <49124B78.2000907@khwilliamson.com>
  Date: Wed, 05 Nov 2008 18:42:16 -0700

p4raw-id: //depot/perl@34747

15 years agoResolve perl #60344: Regex lookbehind failure after an (if)then|else in perl 5.10
Yves Orton [Thu, 6 Nov 2008 10:44:13 +0000 (10:44 +0000)]
Resolve perl #60344: Regex lookbehind failure after an (if)then|else in perl 5.10

During the de-recursivization it looks like Dave M forgot to reset the 'logical'
flag after using it, which in turn causes UNLESSM/IFTHEN when used after a LOGICAL operator to
be incorrectly intrepreted. This change resets the logical flag after each time it is stored
in ST.logical.

p4raw-id: //depot/perl@34746

15 years agoBring ExtUtils::Install up to date with the latest on CPAN 1.50_04 and related test...
Yves Orton [Wed, 5 Nov 2008 22:47:58 +0000 (22:47 +0000)]
Bring ExtUtils::Install up to date with the latest on CPAN 1.50_04 and related test changes

This involves changes to shared test files used by ExtUtils::MakeMaker and ExtUtils::Install, in particular updating the core/MakeMaker version of ExtUtils/t/basic.t so that it reflects the 1.50_03 version, and then splitting it in half into basic.pl and basic_finish.pl, which are then evalled (together) by basic.t. ExtUtils::Install does somethign similar but only with basic.pl.

This also silences an odd warning from MM_Any.pm that comes up once in a while, which I believe is to do with a deeper core failure as it occurs in code utterly unrelated to these changes.

This patch needs to be pushed upstream to the ExtUtils::MakeMaker distribution on CPAN under Schwern's supervision.

In this way it will be possible to simply copy the t/basic.pl from core into ExtUtils::Install or into ExtUtils::MakeMaker or whatever.

Includes the following changes from ExtUtils::Install:

1.50_04

SVN revision 41.

Restructure tests to make it easier to maintain given it is distributed in various
ways in three different packages.

1.50_03

SVN revision 40.

Sigh, just after i released 1.50_02 I noticed that a test modified in it will fail
under VMS. So this is a fixup release for that alone.

1.50_02

SVN revision 39.

Synchronize with the changes that were made in blead perl
patch #33567. VMS changes by Craig Berry. See

http://public.activestate.com/cgi-bin/perlbrowse/p/33567

This was marked in the pod as 1.51 but not actually version bumped.

So I've marked it as 1.50_02 as a test release prior to putting it out
as the real 1.51

This release also restores the missing installed.t which was accidentally
missed by the MANIFEST having a duplicate entry for install.t instead.
Probably something should have warned about this, but I haven't worked out
what.

Includes changes from Activestate/ActivePerl:

- To make installation less chatty when not under verbose mode. See

http://rt.cpan.org/Public/Bug/Display.html?id=5903

- To install HTML documentation files under builds that set $Config{installhtmldir}
(and presumably also create HTML versions of the pod -- which is quite nice actually :-)

http://rt.cpan.org/Ticket/Display.html?id=37727

p4raw-id: //depot/perl@34742

15 years agoUpgrade to File::Path 2.06_08.
Nicholas Clark [Wed, 5 Nov 2008 00:29:57 +0000 (00:29 +0000)]
Upgrade to File::Path 2.06_08.

p4raw-id: //depot/perl@34733

15 years ago${^CHILD_ERROR_NATIVE} isn't mentioned in perlrun.pod, but is in
Nicholas Clark [Tue, 4 Nov 2008 08:03:04 +0000 (08:03 +0000)]
${^CHILD_ERROR_NATIVE} isn't mentioned in perlrun.pod, but is in
perlvar.pod.

p4raw-id: //depot/perl@34714

15 years agoThe breakage caused by #34653 (sh|c)ould have been detected
Marcus Holland-Moritz [Mon, 3 Nov 2008 22:25:09 +0000 (22:25 +0000)]
The breakage caused by #34653 (sh|c)ould have been detected
by the compiler. So further improve the STR_WITH_LEN() macro.

p4raw-id: //depot/perl@34712

15 years agoFix DBM module handling broken by #34653.
Marcus Holland-Moritz [Mon, 3 Nov 2008 22:19:47 +0000 (22:19 +0000)]
Fix DBM module handling broken by #34653.

p4raw-id: //depot/perl@34710

15 years agoRe: @{"_<$filename"} is unreasonably tied to use of DB::DB ($^P & 0x2)
Tim Bunce [Mon, 3 Nov 2008 16:25:37 +0000 (16:25 +0000)]
Re: @{"_<$filename"} is unreasonably tied to use of DB::DB ($^P & 0x2)
Message-ID: <20081103162537.GB45762@timac.local>
Date: Mon, 3 Nov 2008 16:25:37 +0000

p4raw-id: //depot/perl@34706

15 years agoRe: @{"_<$filename"} is unreasonably tied to use of DB::DB ($^P & 0x2)
Tim Bunce [Mon, 3 Nov 2008 16:01:31 +0000 (16:01 +0000)]
Re: @{"_<$filename"} is unreasonably tied to use of DB::DB ($^P & 0x2)
Message-ID: <20081103160130.GA45762@timac.local>
Date: Mon, 3 Nov 2008 16:01:31 +0000

p4raw-id: //depot/perl@34705

15 years ago[perl #60300] doc Carp $Carp::Internal{__PACKAGE__} example
Kevin Ryde [Sat, 1 Nov 2008 16:27:09 +0000 (09:27 -0700)]
[perl #60300] doc Carp $Carp::Internal{__PACKAGE__} example
From: Kevin Ryde (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-29762-1225582029-1073.60300-75-0@perl.org>

p4raw-id: //depot/perl@34703

15 years agoRe: CPAN-1.9301 can't clean bootstrap .cpan
Andreas J. Koenig [Sun, 2 Nov 2008 11:22:29 +0000 (12:22 +0100)]
Re: CPAN-1.9301 can't clean bootstrap .cpan
Message-ID: <87abci5swq.fsf@k75.linux.bogus>
Date: Sun, 02 Nov 2008 11:22:29 +0100

p4raw-id: //depot/perl@34702

15 years agoSilence one more format warning
Rafael Garcia-Suarez [Mon, 3 Nov 2008 09:13:16 +0000 (09:13 +0000)]
Silence one more format warning

p4raw-id: //depot/perl@34700

15 years agoUpgrade to Time::Local 1.1901.
Nicholas Clark [Sun, 2 Nov 2008 21:41:07 +0000 (21:41 +0000)]
Upgrade to Time::Local 1.1901.

p4raw-id: //depot/perl@34699

15 years agoPATCH: Large omnibus patch to clean up the JRRT quotes
Tom Christiansen [Sun, 2 Nov 2008 01:43:39 +0000 (19:43 -0600)]
PATCH: Large omnibus patch to clean up the JRRT quotes
Message-ID: <25940.1225611819@chthon>
Date: Sun, 02 Nov 2008 01:43:39 -0600

p4raw-id: //depot/perl@34698

15 years ago[perl #56526] m/a{1,0}/ compiles but doesn't match a literal string
Michael Cartmell [Wed, 2 Jul 2008 05:17:58 +0000 (22:17 -0700)]
[perl #56526] m/a{1,0}/ compiles but doesn't match a literal string
From: Michael Cartmell (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-27577-1215001078-1211.56526-75-0@perl.org>

p4raw-id: //depot/perl@34697

15 years ago[perl #59652][DOC PATCH] "Too late for "-CS" option"
Renee Baecker [Tue, 7 Oct 2008 08:17:22 +0000 (10:17 +0200)]
[perl #59652][DOC PATCH] "Too late for "-CS" option"
Message-ID: <48EAFEF2.8030403@smart-websolutions.de>

(tweaked)

p4raw-id: //depot/perl@34696

15 years agoexplicit empty while loops
Robin Barker [Wed, 29 Oct 2008 13:22:04 +0000 (13:22 +0000)]
explicit empty while loops
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <46A0F33545E63740BC7563DE59CA9C6D4E2FD9@exchsvr2.npl.ad.local>

p4raw-id: //depot/perl@34695

15 years agoExplicitly specify some printf formats for constant strings.
Rafael Garcia-Suarez [Sun, 2 Nov 2008 16:50:12 +0000 (16:50 +0000)]
Explicitly specify some printf formats for constant strings.
This is mostly to silence gcc's warning, "format not a string
literal and no format arguments".

p4raw-id: //depot/perl@34694

15 years agoAdd a flag PERLDBf_SAVESRC, which enables the saved lines part of
Nicholas Clark [Sat, 1 Nov 2008 14:51:05 +0000 (14:51 +0000)]
Add a flag PERLDBf_SAVESRC, which enables the saved lines part of
PERLDBf_LINE, so that profilers (such as NYTProf) have access to the
lines of the eval, without the speed impact of other parts of the
debugger infrastructure. PERLDBf_LINE is unchanged. Based largely on a
patch by Tim Bunce in <20081028152749.GA12500@timac.local>

p4raw-id: //depot/perl@34693

15 years agoUpgrade to Text::ParseWords 3.27
Nicholas Clark [Fri, 31 Oct 2008 20:23:32 +0000 (20:23 +0000)]
Upgrade to Text::ParseWords 3.27

p4raw-id: //depot/perl@34691