This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
11 years agoIn S_magic_methcall1(), tweak the initialisation of arg1 to reduce code size.
Nicholas Clark [Sun, 25 Apr 2010 08:23:25 +0000 (09:23 +0100)]
In S_magic_methcall1(), tweak the initialisation of arg1 to reduce code size.

11 years agoadd Perl_magic_methcall
David Mitchell [Sat, 24 Apr 2010 23:56:32 +0000 (00:56 +0100)]
add Perl_magic_methcall

Add a new function that wraps the setup needed to call a magic method like
FETCH (the existing S_magic_methcall function has been renamed
S_magic_methcall1).

There is one functional change, done mainly to allow for a single clean
wrapper function, and that is that the method calls are no longer wrapped
with SAVETMPS/FREETMPS. Previously only about half of them had this, so
some relied on the caller to free, some didn't. At least we're consistent
now. Doing it this way is necessary because otherwise magic_methcall()
can't return an SV (eg for POP) because it'll be a temp and get freed by
FREETMPS before it gets returned. So you'd have to copy everything, which
would slow things down.

11 years agoIn Socket.xs, convert 3 croak()s to use %s and a constant string for the name.
Nicholas Clark [Sat, 13 Feb 2010 11:41:08 +0000 (11:41 +0000)]
In Socket.xs, convert 3 croak()s to use %s and a constant string for the name.

This actually saves space, because xsubpp has to use each XS function's full
name as a constant string to pass to newXS(), so any re-use of it is free.

11 years agoFix broken -Uuseperlio build on VMS.
Craig A. Berry [Fri, 23 Apr 2010 23:29:38 +0000 (18:29 -0500)]
Fix broken -Uuseperlio build on VMS.

We were checking a variable that doesn't exist in the non-default
case of disabling perlio.  Now we only look at it when it exists.

11 years agoFix -Uuseperlio command-line option in configure.com.
Craig A. Berry [Fri, 23 Apr 2010 22:54:05 +0000 (17:54 -0500)]
Fix -Uuseperlio command-line option in configure.com.

Formerly it only worked if you went through all the questions
interactively and explicitly answered no.

11 years agoUpdate Module::Load::Conditional to CPAN version 0.38
Chris Williams [Fri, 23 Apr 2010 15:11:39 +0000 (16:11 +0100)]
Update Module::Load::Conditional to CPAN version 0.38

  Addresses a serious problem with CPANPLUS and behaviour of
  version-0.82. Checking for out of date modules with 'o'
  in CPANPLUS blows up if any modules that are installed
  have non-numeric version strings.

  Extract from Changelog:

  Changes for 0.38    Fri Apr 23 15:52:38 BST 2010
  =================================================
  * New release of version raises exceptions on
    parse errors. Use eval to guard ourselves
    against this.

  Changes for 0.36    Tue Feb  9 14:16:21 GMT 2010
  =================================================
  * Apply patch from Pavel Shaydo RT #53546 to improve
    the performance of _parse_version()

11 years ago[perl #73776] "???? - please notify IZ"
Father Chrysostomos [Fri, 23 Apr 2010 14:47:57 +0000 (16:47 +0200)]
[perl #73776] "???? - please notify IZ"

Change 27536 (45f4726) started using -1 as a special len value for utf8
magic. I believe this marker indicates that the utf8 length cache needs
to be calculated, in which case dump.c can ignore this case.

11 years agoPod formatting nits
Rafael Garcia-Suarez [Fri, 23 Apr 2010 12:45:09 +0000 (14:45 +0200)]
Pod formatting nits

11 years agoMerge commit 'avar/avar/pod-perlrepository' into blead
Rafael Garcia-Suarez [Fri, 23 Apr 2010 12:43:55 +0000 (14:43 +0200)]
Merge commit 'avar/avar/pod-perlrepository' into blead

11 years agoconsting in lex_stuff_pvn
Robin Barker [Sun, 18 Apr 2010 19:09:45 +0000 (20:09 +0100)]
consting in lex_stuff_pvn

11 years agot/mro/vulcan* fixes
Arkturuz [Fri, 23 Apr 2010 12:20:31 +0000 (14:20 +0200)]
t/mro/vulcan* fixes

It seems that Dylan Reference Book has been relocated, so included is
the small patch for the vulcan_* test files with the new link.

11 years agoDeprecation warnings should always be mandatory since 5.12.0
Rafael Garcia-Suarez [Fri, 23 Apr 2010 09:42:05 +0000 (11:42 +0200)]
Deprecation warnings should always be mandatory since 5.12.0

11 years agoFix tests and add one more test for the deprecation warning added in last change
Rafael Garcia-Suarez [Fri, 23 Apr 2010 09:39:58 +0000 (11:39 +0200)]
Fix tests and add one more test for the deprecation warning added in last change

11 years agoNew deprecation warning: Dot after %s literal is concatenation
James Mastros [Fri, 23 Apr 2010 09:35:28 +0000 (11:35 +0200)]
New deprecation warning: Dot after %s literal is concatenation

11 years agoFixes and new functions for Module::CoreList
Chris Williams [Thu, 22 Apr 2010 21:37:09 +0000 (22:37 +0100)]
Fixes and new functions for Module::CoreList

  Fixed functions will edge-case involving querying for Module::CoreList
    itself. Pointed out by Ilmari.

  Added removed_from() and removed_from_by_date() functions
    for querying which release a module was removed from core.

  Amended corelist utility to use new removed from functions when
    stating when a module entered core ( and when it left it ).

  Added tests to the testsuite to cover the edge-cases and new funcs.

11 years agotime() resolution is full seconds
Jan Dubois [Thu, 22 Apr 2010 20:46:46 +0000 (13:46 -0700)]
time() resolution is full seconds

So any fudging in the timing needs to be at least 1 second to have any
effect. Upped the total $sleep value to 4 (on Windows) to make sure at
least 3 seconds have passed.  Amends commit 0ebb4f0.

11 years agotime() resolution is full seconds
Jan Dubois [Thu, 22 Apr 2010 19:36:31 +0000 (12:36 -0700)]
time() resolution is full seconds

So any fudging in the timing needs to be at least 1 second to have any
effect. Upped the total $sleep value to 4 (on Windows) to make sure at
least 3 seconds have passed.  Amends commit 0ebb4f0.

11 years agoConsistently use OP_DESC instead of OP_NAME in error messages
Rafael Garcia-Suarez [Thu, 22 Apr 2010 16:12:44 +0000 (18:12 +0200)]
Consistently use OP_DESC instead of OP_NAME in error messages

This solves bug: [perl #74572] chop dies with error about schop

This is not backwards-compatible, as some error messages can change,
as seen by the required change to t/op/sprintf2.t.

11 years agoPOD revision for Module::CoreList.
Chris Williams [Thu, 22 Apr 2010 13:15:49 +0000 (14:15 +0100)]
POD revision for Module::CoreList.

  Fully documented all the functions.

  Fully documented all the provided hash data structures.

11 years agoFreeBSD 7+ no longer contains /usr/bin/objformat, so the following
Todd Rinaldo [Thu, 22 Apr 2010 12:31:16 +0000 (08:31 -0400)]
FreeBSD 7+ no longer contains /usr/bin/objformat, so the following
(harmless) following error message is printed when hints are run:

./hints/freebsd.sh: /usr/bin/objformat: not found

The reason for this is outlined in this email from Feb 2007
http://lists.freebsd.org/pipermail/freebsd-ports/2007-February/038523.html

This patch just skips the objformat check for versions 7+ and
assumes ELF.  (The end result is unchanged, but the error
message will not be printed anymore.)

11 years agoFix for find_version() in Module::CoreList.
Chris Williams [Thu, 22 Apr 2010 11:51:50 +0000 (12:51 +0100)]
Fix for find_version() in Module::CoreList.

11 years agoAdd fudge to timing checks on Windows
Jan Dubois [Wed, 24 Mar 2010 16:54:24 +0000 (09:54 -0700)]
Add fudge to timing checks on Windows

sleep() time on Win32 may be rounded down to multiple of
the clock tick interval.

http://www.nntp.perl.org/group/perl.perl5.porters/2010/03/msg157878.html

11 years agoRemove emacs/cperl-mode.el and helpers
Jan Dubois [Thu, 22 Apr 2010 05:26:04 +0000 (22:26 -0700)]
Remove emacs/cperl-mode.el and helpers

http://www.nntp.perl.org/group/perl.perl5.porters/2010/03/msg158079.html

11 years agoUpdate PerlStdIOGets() signature
Jan Dubois [Thu, 22 Apr 2010 01:55:01 +0000 (18:55 -0700)]
Update PerlStdIOGets() signature

Brings it in line with the rest of the PerlStdIO* functions that
accept parameters in the same order as the corresponding PerlSIO_*
macros.  See also commit ecc880cc.

11 years agoFix PerlSIO_fputc() and PerlSIO_fputs() signatures
Jan Dubois [Thu, 22 Apr 2010 01:47:48 +0000 (18:47 -0700)]
Fix PerlSIO_fputc() and PerlSIO_fputs() signatures

They should have the same prototype as in stdio.

This "proper fix" replaces the 5.12.0 compatible fix in commit 634b482,
but cannot be integrated into 5.12.1 because it breaks binary compatibility.

See also http://rt.perl.org/rt3/Public/Bug/Display.html?id=72704

11 years agoXSUB.h is supposed to redefine fgets under PERL_IMPLICIT_SYS, but doesn't.
Jan Dubois [Wed, 21 Apr 2010 23:49:09 +0000 (16:49 -0700)]
XSUB.h is supposed to redefine fgets under PERL_IMPLICIT_SYS, but doesn't.

See also http://rt.cpan.org/Public/Bug/Display.html?id=55049
with workaround in http://code.google.com/p/perl-devel-nytprof/source/detail?r=1168

11 years agoApply minimal patch for Perl bug 72704.
Jan Dubois [Fri, 5 Mar 2010 23:24:17 +0000 (15:24 -0800)]
Apply minimal patch for Perl bug 72704.

Arguments to fputc() and fputs() are reverted on Windows.

This is not the optimal patch, but will be backwards compatible
with what is in 5.12.0.  For the "correct" patch please see

http://rt.perl.org/rt3/Public/Bug/Display.html?id=72704

11 years agoRemove rendundant CPAN key
Gisle Aas [Sun, 18 Apr 2010 10:41:59 +0000 (12:41 +0200)]
Remove rendundant CPAN key

11 years agofollow up fix for fd69380d5d5b95ef16e2521cf4251b34ee0ce151
David Mitchell [Wed, 21 Apr 2010 17:47:07 +0000 (18:47 +0100)]
follow up fix for fd69380d5d5b95ef16e2521cf4251b34ee0ce151

The original fix for tied elements losing magic had a bug that was masked
by a bool casting issue. Once the casting was fixed, the bug surfaced:
elements of @+ lost their values when returned from a sub. By removing the
TEMP flag from the regdatum PVLV, we force it to be copied when returned.

11 years agoIgnore the /UU directory that exists during ./Configure
Rafael Garcia-Suarez [Wed, 21 Apr 2010 14:35:00 +0000 (16:35 +0200)]
Ignore the /UU directory that exists during ./Configure

11 years agoremove bool* cast from SAVEBOOL
David Mitchell [Wed, 21 Apr 2010 13:53:39 +0000 (14:53 +0100)]
remove bool* cast from SAVEBOOL

SAVEBOOL() should only be used on variables of type bool; casting
pointers to variables of other types into bool* is just wrong.

11 years agoFix [perl #74542] 5.12.0 crash on diverse platforms
Rafael Garcia-Suarez [Wed, 21 Apr 2010 13:47:36 +0000 (15:47 +0200)]
Fix [perl #74542] 5.12.0 crash on diverse platforms

Filetest ops don't always expect an op on the stack, so we should use
TOPs only if we're sure that we're not stat'ing the _ filehandle.
This is indicated by OPf_KIDS (as checked in ck_ftst).

11 years agoDon't ask the porters to fetch commits from a private URL
Ævar Arnfjörð Bjarmason [Tue, 20 Apr 2010 19:28:01 +0000 (19:28 +0000)]
Don't ask the porters to fetch commits from a private URL

git@github.com:USERNAME/perl.git is only accessible to USERNAME (or
collaborators), git://github.com/USERNAME/perl.git is available to
everyone.

11 years agoConsistently use a topic branch in the GitHub examples
Ævar Arnfjörð Bjarmason [Tue, 20 Apr 2010 19:14:24 +0000 (19:14 +0000)]
Consistently use a topic branch in the GitHub examples

Also use an example of an actual topic branch commit of that got into
Perl (<51dd1af81002161108rff277d7r6d0ccee6b45982a0@mail.gmail.com>).

Previously the docs referenced 3adac458cb which doesn't exist in the
repository, 0c24b290ae does.

11 years agoRecommend git format-patch -M (detect renames) and origin..
Ævar Arnfjörð Bjarmason [Tue, 20 Apr 2010 18:58:31 +0000 (18:58 +0000)]
Recommend git format-patch -M (detect renames) and origin..

The latter doesn't strictly matter, but it's easier to see what's
going on with those two dots.

11 years agoRemove Locale-Codes internals from core
Steffen Mueller [Wed, 21 Apr 2010 11:45:39 +0000 (13:45 +0200)]
Remove Locale-Codes internals from core

These (and the examples) don't have to be shipped with core perl. By not
shipping them, we can trivially make sure that they won't be erroneously
installed either.

11 years agoRevert "GitHub's mirror is now at mirrors/perl, not github/perl"
H.Merijn Brand [Wed, 21 Apr 2010 11:16:04 +0000 (13:16 +0200)]
Revert "GitHub's mirror is now at mirrors/perl, not github/perl"

This reverts commit f9bcfeacc119e37fd70816a2cb4678fded53e8d1.

11 years agoadd TODO test for #74484 trie leak
David Mitchell [Wed, 21 Apr 2010 11:02:49 +0000 (12:02 +0100)]
add TODO test for #74484 trie leak

Also add leak_expr function to svleak.t to test an expression for leakage
rather than a whole sub

11 years agoGitHub's mirror is now at mirrors/perl, not github/perl
Ãvar Arnfjörð Bjarmason) (via RT [Tue, 20 Apr 2010 17:58:37 +0000 (10:58 -0700)]
GitHub's mirror is now at mirrors/perl, not github/perl

# New Ticket Created by  (Ævar Arnfjörð Bjarmason)
# Please include the string:  [perl #74532]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74532 >

From: Ævar Arnfjörð Bjarmason <avar@cpan.org>

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
11 years agoUpdate Locale::Codes to 3.12
Steffen Mueller [Wed, 21 Apr 2010 10:18:49 +0000 (12:18 +0200)]
Update Locale::Codes to 3.12

We're skipping inclusion of some files such as the unused Build.PL,
INSTALL, etc. cpan/Locale-Codes/internal/* should probably also not be
included in perl core.

11 years agoUpdate Steffen Mueller's email address in AUTHORS
Steffen Mueller [Tue, 20 Apr 2010 21:26:10 +0000 (23:26 +0200)]
Update Steffen Mueller's email address in AUTHORS

11 years agoAdd contact information for Sullivan Beck
Steffen Mueller [Tue, 20 Apr 2010 21:24:46 +0000 (23:24 +0200)]
Add contact information for Sullivan Beck

... and mark him responsible for Locale::Codes, which is now
"upstream => cpan"

11 years agoMake the Module::CoreList function API consistent
Chris Williams [Wed, 21 Apr 2010 08:47:27 +0000 (09:47 +0100)]
Make the Module::CoreList function API consistent

  Some functions could only be called with class method type syntax.
  Other functions could only be called with normal sub syntax.

  This makes the API consistent, functions can be called with
  either syntax.

11 years agoCorrect spaces in MANIFEST.
Nicholas Clark [Wed, 21 Apr 2010 08:27:55 +0000 (09:27 +0100)]
Correct spaces in MANIFEST.

11 years agoFix MANIFEST by adding new file
Steffen Mueller [Tue, 20 Apr 2010 20:55:21 +0000 (22:55 +0200)]
Fix MANIFEST by adding new file

387b6f8d0cc8df27b7a577cf8a47f25b089895e4 added new file to
cpan/ExtUtils-ParseXS without adding it to MANIFEST.

11 years agoUpgrade Scalar-List-Utils to 1.23 from CPAN
Steffen Mueller [Sun, 18 Apr 2010 15:51:19 +0000 (17:51 +0200)]
Upgrade Scalar-List-Utils to 1.23 from CPAN

11 years agoDocument the INCLUDE_COMMAND XS directive
Steffen Mueller [Sun, 18 Apr 2010 14:39:29 +0000 (16:39 +0200)]
Document the INCLUDE_COMMAND XS directive

ExtUtils::ParseXS has recognized the INCLUDE_COMMAND directive as a
smarter replacement for "INCLUDE: perl -e ... |" since version 2.21_01.

11 years agoUpgrade ExtUtils::ParseXS to 0.2205
Steffen Mueller [Sun, 18 Apr 2010 15:14:57 +0000 (17:14 +0200)]
Upgrade ExtUtils::ParseXS to 0.2205

11 years agoRemove Class::ISA from the core distribution. Get it from CPAN now.
Nicholas Clark [Mon, 19 Apr 2010 20:15:08 +0000 (21:15 +0100)]
Remove Class::ISA from the core distribution. Get it from CPAN now.

11 years agoRemove Pod::Plainer from the core distribution. Get it from CPAN now.
Nicholas Clark [Mon, 19 Apr 2010 20:00:13 +0000 (21:00 +0100)]
Remove Pod::Plainer from the core distribution. Get it from CPAN now.

11 years agoRemove Shell from the core distribution. Get it from CPAN now.
Nicholas Clark [Mon, 19 Apr 2010 19:49:03 +0000 (20:49 +0100)]
Remove Shell from the core distribution. Get it from CPAN now.

11 years agoRemove Switch from the core distribution. Get it from CPAN now.
Nicholas Clark [Mon, 19 Apr 2010 19:35:54 +0000 (20:35 +0100)]
Remove Switch from the core distribution. Get it from CPAN now.

11 years agocreate perl5131delta
Leon Brocard [Tue, 20 Apr 2010 20:31:17 +0000 (21:31 +0100)]
create perl5131delta

11 years agoAdd 5.13.0 to perlhist v5.13.0
Leon Brocard [Tue, 20 Apr 2010 18:55:51 +0000 (19:55 +0100)]
Add 5.13.0 to perlhist

11 years agoMention L<perlpolicy> and link to it in SEE ALSO
Ævar Arnfjörð Bjarmason [Tue, 20 Apr 2010 18:55:04 +0000 (18:55 +0000)]
Mention L<perlpolicy> and link to it in SEE ALSO

11 years agoOnly all-upper case "special" POD sections
Ævar Arnfjörð Bjarmason [Tue, 20 Apr 2010 18:50:42 +0000 (18:50 +0000)]
Only all-upper case "special" POD sections

"GETTING ACCESS TO THE REPOSITORY" is a bit too loud compared to
"Getting access to the repository". The POD standard itself doesn't
have anything to say about this, but most of our long =head1 sections
in pod/*.pod don't use all-caps.

11 years agoUpdate to final content for release
Leon Brocard [Tue, 20 Apr 2010 18:40:36 +0000 (19:40 +0100)]
Update to final content for release

11 years agoCommit messages should start with a ~50 char summary
Ævar Arnfjörð Bjarmason [Tue, 20 Apr 2010 18:36:51 +0000 (18:36 +0000)]
Commit messages should start with a ~50 char summary

The first sentence is stolen from Git's own
Documentation/SubmittingPatches. We have a lot of commit messages that
overflow `git log --pretty=oneline', but it wouldn't hurt if we change
that sooner rather than later.

11 years agoPOD: Use F<> for F<utils/perldoc> and F<utils/perldoc.PL>
Ævar Arnfjörð Bjarmason [Tue, 20 Apr 2010 18:32:45 +0000 (18:32 +0000)]
POD: Use F<> for F<utils/perldoc> and F<utils/perldoc.PL>

11 years agoDon't tell the reader to `git checkout origin/*'
Ævar Arnfjörð Bjarmason [Tue, 20 Apr 2010 18:04:30 +0000 (18:04 +0000)]
Don't tell the reader to `git checkout origin/*'

This results in a branchless checkout (detached HEAD). Making changes
like this is a valid way to use Git, but IMO not something we should
be recommending.

Branches are cheap and it's harder to lose your commits if they're on
a named branch than on a detached HEAD.

11 years agoUpdate Module::CoreList for 5.13.0
Leon Brocard [Tue, 20 Apr 2010 18:18:50 +0000 (19:18 +0100)]
Update Module::CoreList for 5.13.0

11 years agoGitHub's mirror is now at mirrors/perl, not github/perl
Ævar Arnfjörð Bjarmason [Tue, 20 Apr 2010 17:50:03 +0000 (17:50 +0000)]
GitHub's mirror is now at mirrors/perl, not github/perl

11 years ago[rt.cpan.org #56740] Format Perl versions >= 5.6.0 as X.Y.Z
Michael G Schwern [Tue, 20 Apr 2010 13:37:57 +0000 (15:37 +0200)]
[rt.cpan.org #56740] Format Perl versions >= 5.6.0 as X.Y.Z

Decimal style Perl version numbers are increasingly awkward.  5.01 or
5.010000 is hard to equate with 5.10.0.  It would be easier to read if
Module::CoreList formatted version numbers from 5.6 onward as dotted
versions to match how they are presented elsewhere.

11 years agoDon't show aliased perl version numbers twice in corelist -a output
Rafael Garcia-Suarez [Tue, 20 Apr 2010 13:14:45 +0000 (15:14 +0200)]
Don't show aliased perl version numbers twice in corelist -a output

(bug [rt.cpan.org #56739])

11 years agoTypo fix in version number alias 5.013
Rafael Garcia-Suarez [Tue, 20 Apr 2010 13:10:43 +0000 (15:10 +0200)]
Typo fix in version number alias 5.013

11 years agoModule::Pluggable has upstream => cpan
Steffen Mueller [Tue, 20 Apr 2010 06:28:49 +0000 (08:28 +0200)]
Module::Pluggable has upstream => cpan

According to Simon Wistow.

11 years agoReplace mention of Switch.pm with given/when
chromatic [Mon, 19 Apr 2010 23:54:00 +0000 (19:54 -0400)]
Replace mention of Switch.pm with given/when

11 years agoAdd another alias for Robin Barker
Leon Brocard [Mon, 19 Apr 2010 20:21:34 +0000 (21:21 +0100)]
Add another alias for Robin Barker

11 years agoSpaces not tabs
Leon Brocard [Mon, 19 Apr 2010 20:14:55 +0000 (21:14 +0100)]
Spaces not tabs

11 years agoBump version number EU::MM is "first-come" so we have forked it
Leon Brocard [Mon, 19 Apr 2010 20:13:10 +0000 (21:13 +0100)]
Bump version number EU::MM is "first-come" so we have forked it

11 years agoBump version due to d97c33b505dd45c052a8bf42014917701b4502a5
Leon Brocard [Mon, 19 Apr 2010 20:09:45 +0000 (21:09 +0100)]
Bump version due to d97c33b505dd45c052a8bf42014917701b4502a5

11 years agoBump version due to 255fdf19250671082618dae106a246f12379dbe6
Leon Brocard [Mon, 19 Apr 2010 20:08:50 +0000 (21:08 +0100)]
Bump version due to 255fdf19250671082618dae106a246f12379dbe6

11 years agoBump version number EU::MM is "first-come" so we have forked it
Leon Brocard [Mon, 19 Apr 2010 20:06:30 +0000 (21:06 +0100)]
Bump version number EU::MM is "first-come" so we have forked it

11 years agoDocument prctl() via $0 assignment (7636ea95c5) in perldelta
Ævar Arnfjörð Bjarmason [Mon, 19 Apr 2010 19:47:43 +0000 (20:47 +0100)]
Document prctl() via $0 assignment (7636ea95c5) in perldelta

11 years agoAdd =head2 to the perldelta change in da76b8593e
Ævar Arnfjörð Bjarmason [Mon, 19 Apr 2010 19:46:39 +0000 (20:46 +0100)]
Add =head2 to the perldelta change in da76b8593e

11 years agoclarification of multi-bracket format
Ricardo Signes [Sat, 17 Apr 2010 18:34:28 +0000 (14:34 -0400)]
clarification of multi-bracket format

11 years agoPossible undefined behaviour, spotted by gcc 4.5.0 and HP's updated compiler.
Nicholas Clark [Mon, 19 Apr 2010 14:35:59 +0000 (15:35 +0100)]
Possible undefined behaviour, spotted by gcc 4.5.0 and HP's updated compiler.

11 years agoRevert "Documentation tweaks to Text::Tabs"
Gisle Aas [Sun, 18 Apr 2010 22:04:41 +0000 (00:04 +0200)]
Revert "Documentation tweaks to Text::Tabs"

This change was reported upstream in <https://rt.cpan.org/Ticket/Display.html?id=56699>.
Committing it directly to blead was a mistake.

This reverts commit f6e2320c520b8d610a864cd42aece1f0df2db895.

11 years agoLet the cmdVERSION usage message expand $0
Gisle Aas [Sun, 18 Apr 2010 20:36:46 +0000 (22:36 +0200)]
Let the cmdVERSION usage message expand $0

It makes more sense than literally printing "usage: $0 ..."

11 years agoDocumentation tweaks to Text::Tabs
Gisle Aas [Sun, 18 Apr 2010 20:58:02 +0000 (22:58 +0200)]
Documentation tweaks to Text::Tabs

11 years agoBring Porting/Maintainers in sync with reality regarding Scalar-List-Utils
Steffen Mueller [Sun, 18 Apr 2010 15:45:05 +0000 (17:45 +0200)]
Bring Porting/Maintainers in sync with reality regarding Scalar-List-Utils

11 years agoUpdate to MIME-Base64 3.09
Gisle Aas [Tue, 2 Feb 2010 22:22:15 +0000 (23:22 +0100)]
Update to MIME-Base64 3.09

Fixes issue where the Quoted-Printable encoder would sometimes output
lines that were 77 characters long.  The max line length should be 76.

This reverts revert 9ef40646096384d9f65acffab1b9a2df07d03a0c.

11 years agoEscape patch strings before embedding them in patchlevel.h
Gisle Aas [Sat, 27 Mar 2010 06:55:51 +0000 (22:55 -0800)]
Escape patch strings before embedding them in patchlevel.h

11 years agoPassing regexp vars as argument is unsafe
Gisle Aas [Sun, 18 Apr 2010 15:13:46 +0000 (17:13 +0200)]
Passing regexp vars as argument is unsafe

In this case $_[0] is unexpectedly modified by matching a regular
expression inside the function, making it report bad file names.

11 years agoAvoid "Use of uninitialized value $base" for the CPANPLUS .hidden file
Gisle Aas [Sun, 18 Apr 2010 15:12:24 +0000 (17:12 +0200)]
Avoid "Use of uninitialized value $base" for the CPANPLUS .hidden file

11 years agoDo not clobber %ENV in EU::MM test
Steffen Mueller [Sun, 18 Apr 2010 14:52:44 +0000 (16:52 +0200)]
Do not clobber %ENV in EU::MM test

175046355f07701 introduced an error in the ExtUtils::MakeMaker
prerequisites tests in that it clobbers %ENV instead of just locally
overriding $ENV{PERL_CORE}.

11 years agoEU::MakeMaker shouldn't warn about prereqs in core
Steffen Mueller [Sun, 18 Apr 2010 14:24:20 +0000 (16:24 +0200)]
EU::MakeMaker shouldn't warn about prereqs in core

This silences warnings about missing prerequisites when part of a perl
core build. Triggered by #74442.

11 years agoMake abstract_from more robust
Robin Barker [Thu, 15 Apr 2010 20:14:23 +0000 (21:14 +0100)]
Make abstract_from more robust

A few distributions in the perl source failure for abstract_from
Rather than fix the individual files I have made the parsing process
more robust.

11 years agoMove PERL_ASYNC_CHECK() from POPBLOCK() to the kill case of Perl_apply().
Nicholas Clark [Sun, 18 Apr 2010 12:24:20 +0000 (13:24 +0100)]
Move PERL_ASYNC_CHECK() from POPBLOCK() to the kill case of Perl_apply().

This ensures that (safe) signals sent to the same process are still dispatched
within the same statement (as before), without overloading the semantics of
block popping.

11 years agoNote the revised signal dispatch and performance gain in perl5130delta.pod.
Nicholas Clark [Sat, 17 Apr 2010 20:56:23 +0000 (21:56 +0100)]
Note the revised signal dispatch and performance gain in perl5130delta.pod.

11 years agoDispatch signals in infinite loops such as 1 while 1;
Nicholas Clark [Sat, 17 Apr 2010 20:24:21 +0000 (21:24 +0100)]
Dispatch signals in infinite loops such as 1 while 1;

With the move of PERL_ASYNC_CHECK() out from the runloop to control ops,
infinite loops became truely infinite, as their optree has no control ops.
Hence add a PERL_ASYNC_CHECK() to pp_unstack to ensure signals will be
dispatched.

Bug noticed by Jerry Hedden.

11 years agoFix RT #74290 - regression for labels immediately before string evals.
Nicholas Clark [Sat, 17 Apr 2010 19:11:49 +0000 (20:11 +0100)]
Fix RT #74290 - regression for labels immediately before string evals.

Fix location identified by Father Chrysostomos, who also offered a patch, but
this patch is more efficient, as it avoids any allocation. Test code based on
his test example.

11 years agoIn Perl_get_debug_opts(), restructure the message into fewer string literals.
Nicholas Clark [Sat, 17 Apr 2010 13:44:36 +0000 (14:44 +0100)]
In  Perl_get_debug_opts(), restructure the message into fewer string literals.

This reduces the object code size slightly.

11 years agoIn S_usage(), restructure the storage of the help message into fewer literals.
Nicholas Clark [Sat, 17 Apr 2010 12:13:39 +0000 (13:13 +0100)]
In S_usage(), restructure the storage of the help message into fewer literals.

This reduces the object code size slightly.

11 years agoAlso guess $ENV{EMAIL}, if present, as the originating address
Alex Vandiver [Sat, 17 Apr 2010 03:54:11 +0000 (23:54 -0400)]
Also guess $ENV{EMAIL}, if present, as the originating address

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
11 years ago[PATCH] [5.12] Allow build on aix 4.2 (sigaction and IPv6)
H.Merijn Brand [Fri, 16 Apr 2010 15:47:15 +0000 (17:47 +0200)]
[PATCH] [5.12] Allow build on aix 4.2 (sigaction and IPv6)

Based on a patch by AUGUSTE-ETIENNE José <jose.auguste-etienne@cgss-guyane.fr>

The attached patches are necessary to work around aix 4.2 lack of support for IPv6,
and limited support for POSIX sigaction()

The hints/aix_4.sh patch solves the following build failure:

"Socket.xs", line 468.16: 1506-007 (S) "struct in6_addr" is undefined.

The ext/POSIX/t/sigaction.t patch solves the failing test reported a looong time ago:

http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-01/msg01124.html

After testing a simple C program using POSIX sigaction() with SA_SIGINFO,
I found that it worked on aix 4.3 but failed on aix 4.2.

I think it's safe to skip the SA_SIGINFO test on the aix 4.2 platform.

perl 5.12.0 builds fine on the following platforms / C compiler :

aix 4.2.1 / vac 5.0.2.7 (with attached patches)
aix 4.3.2 / gcc 2.95.3
aix 4.3.3 / vac 4.4.0.3
aix 4.3.3 / vac 5.0.28
aix 5.2 / GNUpro gcc 2.9.aix51.020209

The atatched patches should be applied to blead and maint.

11 years agoMerge branch 'blead' of perl5.git.perl.org:/gitroot/perl into blead
H.Merijn Brand [Fri, 16 Apr 2010 12:03:05 +0000 (14:03 +0200)]
Merge branch 'blead' of perl5.git.perl.org:/gitroot/perl into blead

11 years agoAdd new Data::Dumper test file to MANIFEST
Rafael Garcia-Suarez [Thu, 15 Apr 2010 20:40:32 +0000 (22:40 +0200)]
Add new Data::Dumper test file to MANIFEST

11 years agoUpgrade Data::Dumper to 2.126 CPAN release
Steffen Mueller [Thu, 15 Apr 2010 19:57:15 +0000 (21:57 +0200)]
Upgrade Data::Dumper to 2.126 CPAN release

No significant changes, just synchronization to the exact release.

11 years agoFix Data::Dumper's Fix Terse(1) + Indent(2)
Michael G. Schwern [Thu, 15 Apr 2010 19:29:43 +0000 (21:29 +0200)]
Fix Data::Dumper's Fix Terse(1) + Indent(2)

RT #73604: When $Data::Dumper::Terse is true, the indentation is thrown
off. It appears to be acting as if the $VAR1 = is still there.