This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
13 years agoUpdate title of "Supported Platforms" in perlport to avoid
Rafael Garcia-Suarez [Fri, 30 Apr 2010 12:18:35 +0000 (14:18 +0200)]
Update title of "Supported Platforms" in perlport to avoid
breaking pod links at each perl release (spotted by Karl Williamson)

13 years agoRe-run bump-perl-version to update a few missing spots
Vincent Pit [Fri, 30 Apr 2010 10:40:08 +0000 (12:40 +0200)]
Re-run bump-perl-version to update a few missing spots

13 years agoTeach bump-perl-version about "libperl511.a"
Vincent Pit [Fri, 30 Apr 2010 10:33:08 +0000 (12:33 +0200)]
Teach bump-perl-version about "libperl511.a"

13 years agoDon't use a C++ keyword as a variable name ("new").
Nicholas Clark [Fri, 30 Apr 2010 07:12:51 +0000 (08:12 +0100)]
Don't use a C++ keyword as a variable name ("new").

13 years agoput package declaration before label in deparsing
Zefram [Thu, 29 Apr 2010 23:02:06 +0000 (00:02 +0100)]
put package declaration before label in deparsing

When deparsing a nextstate op that has both a change of package (relative
to the previous nextstate) and a label, the package declaration must be
emitted first, because it is syntactically impermissible for a label to
prefix a package declaration.

13 years agoMerge branch 'dual/Safe' into blead
Rafael Garcia-Suarez [Thu, 29 Apr 2010 20:37:06 +0000 (22:37 +0200)]
Merge branch 'dual/Safe' into blead

13 years agoBump Safe's version to 2.27 and update Changes and META.yml
Rafael Garcia-Suarez [Thu, 29 Apr 2010 20:25:36 +0000 (22:25 +0200)]
Bump Safe's version to 2.27 and update Changes and META.yml

13 years agoMention that Safe::reval() no wraps returned coderefs
Rafael Garcia-Suarez [Thu, 29 Apr 2010 15:13:42 +0000 (17:13 +0200)]
Mention that Safe::reval() no wraps returned coderefs

13 years agoDeprecate Perl_ptr_table_clear(). Nothing outside sv.c uses it.
Nicholas Clark [Thu, 29 Apr 2010 15:11:15 +0000 (16:11 +0100)]
Deprecate Perl_ptr_table_clear(). Nothing outside sv.c uses it.

Inline the necessary parts of Perl_ptr_table_clear() into Perl_ptr_table_free().
No need to reset memory to zero that is about to be freed anyway.

13 years agoRegression tests for the ptr_table_* API.
Nicholas Clark [Thu, 29 Apr 2010 14:27:31 +0000 (15:27 +0100)]
Regression tests for the ptr_table_* API.

13 years agoRevert "Un-TODO warning test"
Rafael Garcia-Suarez [Thu, 29 Apr 2010 11:02:27 +0000 (13:02 +0200)]
Revert "Un-TODO warning test"

This reverts commit efbe327085cc15510d8c261772e9ac21be3635de.

13 years agoWrap by default coderefs returned by rdo and reval
Rafael Garcia-Suarez [Thu, 29 Apr 2010 11:02:01 +0000 (13:02 +0200)]
Wrap by default coderefs returned by rdo and reval

(suggested by Tim Bunce)

13 years agoAdd &version::vxs::stringify to the default share
Rafael Garcia-Suarez [Thu, 29 Apr 2010 10:30:06 +0000 (12:30 +0200)]
Add &version::vxs::stringify to the default share

13 years agoimport Pod-Simple 3.14 for C<< >> fix
Ricardo Signes [Wed, 28 Apr 2010 03:15:04 +0000 (23:15 -0400)]
import Pod-Simple 3.14 for C<< >> fix

13 years agoCorrect POD link to perlrun.pod to be more accurate
Ævar Arnfjörð Bjarmason [Tue, 27 Apr 2010 16:35:39 +0000 (16:35 +0000)]
Correct POD link to perlrun.pod to be more accurate

Now liking to the specific section in perlrun that discusses
sitecustomize.pl

Signed-off-by: Ævar Arnfjörð Bjarmason <avar@cpan.org>
13 years agoAdd POD index entries for sitecustomize and sitecustomize.pl
Ævar Arnfjörð Bjarmason [Tue, 27 Apr 2010 16:33:43 +0000 (16:33 +0000)]
Add POD index entries for sitecustomize and sitecustomize.pl

This covers all non-perldelta occurrences of documentation that
discusses sitecustomize.pl

Signed-off-by: Ævar Arnfjörð Bjarmason <avar@cpan.org>
13 years agoImprove documentation about sitecustomize.pl.
Philippe Bruhat (BooK) [Tue, 27 Apr 2010 16:12:36 +0000 (18:12 +0200)]
Improve documentation about sitecustomize.pl.

This documentation patch is more a rewording of the content of
http://www.nntp.perl.org/group/perl.perl5.porters/2007/10/msg129930.html
than anything original.

The actual authors are therefore Michael G Schwern, Jan Dubois, Peter
Dintelmann, and H.Merijn Brand.

Signed-off-by: Philippe Bruhat (BooK) <book@cpan.org>
Signed-off-by: Ævar Arnfjörð Bjarmason <avar@cpan.org>
13 years agodon't use $[ in library code
Zefram [Tue, 13 Apr 2010 21:02:58 +0000 (22:02 +0100)]
don't use $[ in library code

Remove all uses of $[, both reads and writes, from library code.
Test code (which must test behaviour of $[) is unchanged, as is the
actual implementation of $[.  Uses in CPAN libraries are also untouched:
I've opened tickets at rt.cpan.org regarding them.

13 years agoAdd miyagawa to the list of release engineering suckers.
Jesse Vincent [Tue, 27 Apr 2010 10:46:39 +0000 (18:46 +0800)]
Add miyagawa to the list of release engineering suckers.

13 years agoConvert Perl_magic_methcall() to varargs.
Nicholas Clark [Mon, 26 Apr 2010 10:52:25 +0000 (11:52 +0100)]
Convert Perl_magic_methcall() to varargs.

This means removing its macro wrapper, as there's no portable way to do varargs
macros.

13 years agoFor Perl_magic_methcall() add G_UNDEF_FILL to fill the stack with &PL_sv_undef.
Nicholas Clark [Sun, 25 Apr 2010 14:41:48 +0000 (15:41 +0100)]
For Perl_magic_methcall() add G_UNDEF_FILL to fill the stack with &PL_sv_undef.

This replaces the previous special case of using a negative argument count to
signify this, allowing the argument count to become unsigned. Rename it from n
to argc.

13 years agoFix possible undefined behaviour introduced by b9e00b79e4947c49d5520633f9efd2a8e39ec14f
Vincent Pit [Mon, 26 Apr 2010 19:51:42 +0000 (21:51 +0200)]
Fix possible undefined behaviour introduced by b9e00b79e4947c49d5520633f9efd2a8e39ec14f

13 years agoAdd a note about perlport in the release managers' guide
Rafael Garcia-Suarez [Mon, 26 Apr 2010 14:13:12 +0000 (16:13 +0200)]
Add a note about perlport in the release managers' guide

13 years agoFill blank with the release date of 5.12 in perlport
Rafael Garcia-Suarez [Mon, 26 Apr 2010 14:08:16 +0000 (16:08 +0200)]
Fill blank with the release date of 5.12 in perlport

13 years agoSave the popped cx->blk_eval.old_namesv before calling LEAVE
Vincent Pit [Sun, 25 Apr 2010 15:53:28 +0000 (17:53 +0200)]
Save the popped cx->blk_eval.old_namesv before calling LEAVE

It's fine to still refer to cx members between POPEVAL and LEAVE, but there
are a few places where the namesv is read after LEAVE happens. This is bad
because LEAVE can call arbitrary code ; in particular, it can call a destructor
that does call_sv(cv, G_EVAL), in which case the old eval context cx gets
overwritten by the new one and cx->blk_eval.old_namesv points to garbage.

13 years agoFix h2ph and test
Robin Barker [Thu, 22 Apr 2010 10:51:20 +0000 (11:51 +0100)]
Fix h2ph and test

13 years agoavoid use of operator name in macro
Robin Barker [Wed, 21 Apr 2010 23:37:34 +0000 (00:37 +0100)]
avoid use of operator name in macro

13 years agoFix Module::Build::Platform::cygwin runtime error
David Golden [Mon, 26 Apr 2010 11:46:25 +0000 (07:46 -0400)]
Fix Module::Build::Platform::cygwin runtime error

This addresses runtime errors in Module::Build::Platform::cygwin
as reported by Jesse Vincent.  The changes are backported from
the Module::Build repository and the version number has been
slightly incremented to indicate a change from the version on CPAN.

This hopefully addresses test errors in t/actions/installdeps.t, but
the error seems specific to building perl on cygwin and has not been
reported when Module::Build was tested on cygwin by CPAN Testers.

13 years agoGlobs that are in symbol table can be un-globbed
Lubomir Rintel (GoodData) [Thu, 22 Apr 2010 16:19:23 +0000 (18:19 +0200)]
Globs that are in symbol table can be un-globbed

If a symbol table entry is undefined when a glob is assigned into it, it
gets a FAKE flag which makes it possible to be downgraded when non-glob
is subsequently assigned into it. It doesn't really matter, until we
decide to localize it -- it wouldn't be possible to restore its GP upon
context return if it changed type, therefore we must not do that.

This patch turns off FAKE flag when localizing a GV and restores it when
the context is left. A test case is included.

13 years agoremove Perl_pmflag
Robin Barker [Mon, 19 Apr 2010 16:00:59 +0000 (17:00 +0100)]
remove Perl_pmflag

13 years agoregen header after last patches
Rafael Garcia-Suarez [Mon, 26 Apr 2010 08:24:43 +0000 (10:24 +0200)]
regen header after last patches

13 years agoNote in delta an incompatibility for \cX
Karl Williamson [Mon, 26 Apr 2010 08:22:42 +0000 (10:22 +0200)]
Note in delta an incompatibility for \cX

X in "\cX" must now be ASCII.  Previously, it could be anything, but led
to a malformed utf8 error if wasn't Latin1.  This construct was never
intended to be used for anything but (a subset of) ASCII.

(moved to the delta for 5.13.1)

13 years agoDeal with "\c{", and its kin
Karl Williamson [Tue, 20 Apr 2010 02:16:50 +0000 (20:16 -0600)]
Deal with "\c{", and its kin

make regen is needed

This patch forbids non-ascii following the "\c".  It also terminates for
"\c{" with a message to contact p5p if there is need for continuing its
current definition.  And if the character following the "\c" causes the
result to not be a control character, a warning is issued.  This is
currently 'deprecated', which by default is turned on.  This can easily
be changed later.

This patch is the initial patch.  It does not do any fancy showing the
context where the problematic construct occurs.  This can be added
later.

It gathers the 3 occurrences of evaluating \c and puts them in one
common routine.

13 years agoMake sure isCNTRL and isASCII work on signed chars
Karl Williamson [Tue, 20 Apr 2010 02:05:31 +0000 (20:05 -0600)]
Make sure isCNTRL and isASCII work on signed chars

Prior to this patch, there is a potential bug in these two macros, in
which, if they are called with a signed character outside the ASCII
range, it will be negative and they always returned true for negative.
Casting the parameter to an unsigned should fix that by having it be
interpreted as a number above the ASCII range.

13 years agoMinor edition nit in perlfunc
Rafael Garcia-Suarez [Mon, 26 Apr 2010 07:44:35 +0000 (09:44 +0200)]
Minor edition nit in perlfunc

13 years agoperlebcdic.pod nits plus improve controls docs
Karl Williamson [Sat, 24 Apr 2010 20:24:25 +0000 (14:24 -0600)]
perlebcdic.pod nits plus improve controls docs

The controls all now have names, and the part about \c\ has been
corrected.  The table widths have been changed; all recipes have been
tested on the new tables.

13 years agoClarify \c in perlop.pod.
Karl Williamson [Sat, 24 Apr 2010 19:44:30 +0000 (13:44 -0600)]
Clarify \c in perlop.pod.

And structure the table containing \c better.

13 years agoEdits to perlrecharclass.pod
Karl Williamson [Sat, 24 Apr 2010 19:35:34 +0000 (13:35 -0600)]
Edits to perlrecharclass.pod

A number of clarification and wording edits have been made, fixing some
broken links, and details especially on \d in the Unicode range.  Fixed
an incorrect character ordinal

13 years agoNits in perlre.pod, x-referencing, broken links
Karl Williamson [Sat, 24 Apr 2010 18:37:19 +0000 (12:37 -0600)]
Nits in perlre.pod, x-referencing, broken links

13 years agoFix broken links
Karl Williamson [Sat, 24 Apr 2010 18:32:42 +0000 (12:32 -0600)]
Fix broken links

13 years agoperlfunc.pod: case-change cleanup; mention packtut
Karl Williamson [Sat, 24 Apr 2010 18:27:01 +0000 (12:27 -0600)]
perlfunc.pod: case-change cleanup; mention packtut

Specifies completely the behavior of the case-changing functions, and
mentions in the existence of the pack tutorial for the packing ones.

13 years agoNits in perlunicode.pod
Karl Williamson [Sat, 24 Apr 2010 18:14:27 +0000 (12:14 -0600)]
Nits in perlunicode.pod

13 years agoClarify \c usage in perlrebackslash.pod
Karl Williamson [Sat, 24 Apr 2010 17:21:24 +0000 (11:21 -0600)]
Clarify \c usage in perlrebackslash.pod

13 years agoNits in perlunifaq.pod
Karl Williamson [Sat, 24 Apr 2010 17:15:33 +0000 (11:15 -0600)]
Nits in perlunifaq.pod

13 years agoNits in perluniintro.pod
Karl Williamson [Sat, 24 Apr 2010 17:03:48 +0000 (11:03 -0600)]
Nits in perluniintro.pod

Make accurate the advice about eighth-bit set characters, and a few
editing improvements.

13 years agoRemove false statement about Unicode strings
Karl Williamson [Sat, 24 Apr 2010 16:23:08 +0000 (10:23 -0600)]
Remove false statement about Unicode strings

It is simply not true that all text strings are Unicode strings in Perl.

13 years agoDon't use Test::More in t/op/* tests
Rafael Garcia-Suarez [Mon, 26 Apr 2010 07:23:52 +0000 (09:23 +0200)]
Don't use Test::More in t/op/* tests

13 years agoadd tests for version::is_strict() and version::is_lax()
David Golden [Mon, 26 Apr 2010 00:26:44 +0000 (20:26 -0400)]
add tests for version::is_strict() and version::is_lax()

13 years agofix version::is_strict/is_lax exporting
David Golden [Sun, 25 Apr 2010 23:51:07 +0000 (19:51 -0400)]
fix version::is_strict/is_lax exporting

These were being exported with a wrapper that treated them as method
calls, which causes them to fail.  They are just functions, are
documented as such, and should never be subclassed, so this patch
just exports them directly as functions without the wrapper.

13 years agoFix utf8::is_utf8 to respect GMAGIC (e.g. $1)
gfx [Sun, 25 Apr 2010 20:02:09 +0000 (22:02 +0200)]
Fix utf8::is_utf8 to respect GMAGIC (e.g. $1)

13 years agoavoid multiple FETCHes
David Mitchell [Sun, 25 Apr 2010 15:28:41 +0000 (16:28 +0100)]
avoid multiple FETCHes

The fix 2d961f6deff7 for RT #5475 included a mechanism for the early
calling of get magic on something like

    $tied[0];

so that even though the element is used in void context, we still call
FETCH. Some people seem to rely on this.

However, the call to mg_get() didn't distinguish between a tiedelem
member retrieved from a tied array/hash, and a tiedscalar element
retrieved from a plain array/hash. In the latter case, the S_GSKIP
protection mechanism doesn't apply and a simple $foo = $h{tiedelem}
generated two calls to FETCH.

Fix this by only calling mg_get() on the element if it came from a *tied*
array/hash.

A side-effect of this fix is that the following no longer calls FETCH:

    my @plain_array;
    tie $plain_array[0], ....; # element 0 is now a tied scalar
    $plain_array[0]; # void context:  no longer calls FETCH.

This required one test in op/tie.t to be fixed up, but in general I think
this is a reasonable compromise.

13 years agoBump versions of charnames and Unicode::UCD after last patches
Rafael Garcia-Suarez [Sun, 25 Apr 2010 14:55:30 +0000 (16:55 +0200)]
Bump versions of charnames and Unicode::UCD after last patches

13 years agoAdapt plan after last patch
Rafael Garcia-Suarez [Sun, 25 Apr 2010 14:55:12 +0000 (16:55 +0200)]
Adapt plan after last patch

13 years agoPATCH [perl #72624] charnames::viacode(0) returns undef
Karl Williamson [Fri, 16 Apr 2010 04:12:32 +0000 (22:12 -0600)]
PATCH [perl #72624] charnames::viacode(0) returns undef

The viacode() function contained the code from the _getcode() function from
Unicode::UCD, unchanged.  However, the rest of viacode() requires that
the result be specially formatted to do a string match with leading
zeros inserted to bring the length up to 4 if less than that.  The
original function only needs to get the number right, as a numerical
comparison is done, so it doesn't do this.  This showed up with calling
viacode with 0, but the bug also affected any input that looked like a
hex number, or a U+ number, such as 'BEE' or 'U+EF'.  These need to be
massaged into '0BEE' and '00EF' for the pattern match later in the
routine to succeed.

The patch also adds a test case to Unicode::UCD to verify that it really
does work ok on 0.

13 years agoPATCH: memory leak introduced in 5.12.0
Karl Williamson [Fri, 16 Apr 2010 03:32:27 +0000 (21:32 -0600)]
PATCH: memory leak introduced in 5.12.0

There is a small possibility of a memory leak in toke.c when there is a
deprecated character in the name in a \N{...} construct, and the Perl is
embedded or something like that so that memory isn't freed up when it
exits.  This patch avoids the creation of a new scalar, and gives a
better error message besides.

13 years ago5.12.0 test failures in lib/blib.t and lib/locale.t: Darwin/PPC
James E Keenan [Sun, 25 Apr 2010 14:27:35 +0000 (16:27 +0200)]
5.12.0 test failures in lib/blib.t and lib/locale.t: Darwin/PPC

13 years agoChange the flags argument to magic_methcall/magic_methcall1 from I32 to U32.
Nicholas Clark [Sun, 25 Apr 2010 11:47:11 +0000 (12:47 +0100)]
Change the flags argument to magic_methcall/magic_methcall1 from I32 to U32.

13 years agounwinding target nominated by separate global
Zefram [Tue, 20 Apr 2010 23:00:09 +0000 (00:00 +0100)]
unwinding target nominated by separate global

When unwinding due to die, the new global PL_restartjmpenv points
to the JMP_ENV at which longjmping should stop and control should
be transferred to PL_restartop.  This replaces the previous
use of cxstack[cxstack_ix+1].blk_eval.cur_top_env, located in a
nominally-discarded context frame.

13 years agoDon't allocate pointer table entries from arenas.
Nicholas Clark [Sun, 25 Apr 2010 09:24:06 +0000 (10:24 +0100)]
Don't allocate pointer table entries from arenas.

Instead, allocate a private arena chain per pointer table, and free that chain
when its pointer table is freed. Patch from RT #72598.

13 years agoMore defensive definition of memEQs().
Nicholas Clark [Sun, 25 Apr 2010 08:35:11 +0000 (09:35 +0100)]
More defensive definition of memEQs().

13 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.

13 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.

13 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.

13 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.

13 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.

13 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()

13 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.

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

13 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

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

13 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.

13 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

13 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

13 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

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.)

13 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.

13 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

13 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

13 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.

13 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

13 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

13 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

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

13 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.

13 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

13 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.

13 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).

13 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.

13 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.

13 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.

13 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.

13 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.

13 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

13 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>
13 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.