platform/upstream/perl.git
12 years agoExtUtils::ParseXS: Changelog, version bump for dev release
Steffen Mueller [Sat, 28 Jan 2012 11:49:49 +0000 (12:49 +0100)]
ExtUtils::ParseXS: Changelog, version bump for dev release

Upgrade the version in ExtUtils::ParseXS to 3.13_01 for a development
release.

12 years agomymalloc isn't thread safe (rurban)
H.Merijn Brand [Fri, 27 Jan 2012 15:09:31 +0000 (16:09 +0100)]
mymalloc isn't thread safe (rurban)

12 years agoAllow prototypes (_@) and (_%)
Rafael Garcia-Suarez [Fri, 27 Jan 2012 09:23:12 +0000 (10:23 +0100)]
Allow prototypes (_@) and (_%)

Those will be equivalent to (_;@) and (_;%) ; since perlsub already
states that the semicolon is redundant before @ and % this is in
line with the existing documentation.

12 years agoShow test names in output
Rafael Garcia-Suarez [Fri, 27 Jan 2012 08:59:54 +0000 (09:59 +0100)]
Show test names in output

12 years agoMake blead upstream for warnings.pm
Father Chrysostomos [Fri, 27 Jan 2012 06:29:42 +0000 (22:29 -0800)]
Make blead upstream for warnings.pm

This isn’t even a dual-life module.  Why it has its own entry I don’t
know; but in any case it has to have blead for upstream, otherwise
cmp_version.t skips it.

12 years agoIncrease $warnings::VERSION to 1.13
Father Chrysostomos [Fri, 27 Jan 2012 04:45:28 +0000 (20:45 -0800)]
Increase $warnings::VERSION to 1.13

12 years agoAllow ${^WARNING_BITS} to turn off lexical warnings
Father Chrysostomos [Fri, 27 Jan 2012 04:43:17 +0000 (20:43 -0800)]
Allow ${^WARNING_BITS} to turn off lexical warnings

Various magical modules copy hints from one scope to another.  But
copying ${^WARNING_BITS} doesn’t always copy the same hints.  If lexi-
cal warnings are not on at all, ${^WARNING_BITS} returns a different
value depending on the current value of $^W.  Setting ${^WARNING_BITS}
to its own value when $^W is true will stop $^W from being able to
control the warnings in the current compilation scope.  Setting
${^WARNING_BITS} to its own value when $^W is false causes even
default warnings to be suppressed.

This commit makes undef a special value that represents the default
state, in which $^W controls warnings.

12 years agopat.t: Test that . overloading gets passed qr ref
Father Chrysostomos [Fri, 27 Jan 2012 00:31:53 +0000 (16:31 -0800)]
pat.t: Test that . overloading gets passed qr ref

This is something that my sample patch in ticked #108780 (for
fixing /foo$qr/ under ‘no overloading’) would have broken had it
been applied.

12 years agostat.t: Skip test when running as root
Rainer Tammer [Thu, 26 Jan 2012 17:35:08 +0000 (09:35 -0800)]
stat.t: Skip test when running as root

12 years agoBump $Unicode::UCD::VERSION after commit c3e5bc54acca7110.
Nicholas Clark [Wed, 25 Jan 2012 14:30:05 +0000 (15:30 +0100)]
Bump $Unicode::UCD::VERSION after commit c3e5bc54acca7110.

12 years agoUpdate list of files for a minimal installation in INSTALL.
Andy Dougherty [Wed, 25 Jan 2012 13:53:07 +0000 (08:53 -0500)]
Update list of files for a minimal installation in INSTALL.

Update the minimal list of files for 5.15.7, and also for Debian's
perl-5.10.1 base package (which is what is in the Debian stable
distribution at present).  These lists do not include any explicit advice
about what to name those stripped down installations.

12 years agoCorrectly escape UTF-8 in hash keys in uninitialized warnings
Rafael Garcia-Suarez [Wed, 25 Jan 2012 11:45:25 +0000 (12:45 +0100)]
Correctly escape UTF-8 in hash keys in uninitialized warnings

12 years agoInitialize buffer to an empty string to avoid spurious uninitialized warnings
Rafael Garcia-Suarez [Wed, 25 Jan 2012 11:34:17 +0000 (12:34 +0100)]
Initialize buffer to an empty string to avoid spurious uninitialized warnings

12 years agoUpdate known_pod_issues.dat for x2p/psed
Chris 'BinGOs' Williams [Wed, 25 Jan 2012 11:06:04 +0000 (11:06 +0000)]
Update known_pod_issues.dat for x2p/psed

12 years agoFix pod error in Unicode::UCD
Chris 'BinGOs' Williams [Wed, 25 Jan 2012 10:59:28 +0000 (10:59 +0000)]
Fix pod error in Unicode::UCD

12 years agoUpdate DB_File to CPAN version 1.826
Chris 'BinGOs' Williams [Wed, 25 Jan 2012 09:39:20 +0000 (09:39 +0000)]
Update DB_File to CPAN version 1.826

  [DELTA]

  1.826 25 Jan 2012

   * t/db-btree.t - fix use of "length @array"
     [RT ##74336]

12 years agoRevert "Regen known_pod_issues.dat"
Chris 'BinGOs' Williams [Wed, 25 Jan 2012 09:30:27 +0000 (09:30 +0000)]
Revert "Regen known_pod_issues.dat"

This reverts commit 5fa409a90f64110c5708f7141b376e9bdc54fbe2.

Resolved by update of Pod-Parser to version 1.51

12 years agoUpdate Pod-Parser to CPAN version 1.51
Chris 'BinGOs' Williams [Wed, 25 Jan 2012 09:26:18 +0000 (09:26 +0000)]
Update Pod-Parser to CPAN version 1.51

  [DELTA]

  25-Jan-2012           Marek Rouchal                        <marekr@cpan.org>
  -----------------------------------------------------------------------------
  Version 1.51
  + CPAN#74271: Pod::Parser should not flag L<text|hyperlink>
    undo change CPAN#47473: L<alt text|URL> _is_ allowed (see discussion on
    pod-people and p5p); confirmed by blead change; references:
    http://code.activestate.com/lists/perl-pod-people/1690/
    http://code.activestate.com/lists/perl-pod-people/1393/
    http://perl5.git.perl.org/perl.git/commit/f6e963e4dd62b8e3c01b31f4a4dd57e47e104997
  + bump all module versions (except Pod::PlainText) to 1.51
  + update META.yml (thanks rjbs for the hint)

12 years agoMake the display of the warning "Useless use of a constant (%s)" more robust
Rafael Garcia-Suarez [Wed, 25 Jan 2012 10:41:13 +0000 (11:41 +0100)]
Make the display of the warning "Useless use of a constant (%s)" more robust

If the constant is a string (POK), we dump it using pv_pretty, to
properly escape non-printable characters. This also improves detection
of utf-8 encoding in the constant to be printed. Also, this patch
streamlines the tests for the type and value of that constant.

Potential backwards-compatibility issues : if the constant is a string
it will now be enclosed in double quotes, like this :
    Useless use of a constant ("a") in void context
instead of
    Useless use of a constant (a) in void context

12 years agoCYG17 utf8 paths
Reini Urban [Tue, 12 Apr 2011 10:19:36 +0000 (12:19 +0200)]
CYG17 utf8 paths

Use cygwin_conv_path since cygwin-1.7 and support native utf-8 paths.

12 years agoUpdate DB_File to CPAN version 1.825
Chris 'BinGOs' Williams [Tue, 24 Jan 2012 22:46:59 +0000 (22:46 +0000)]
Update DB_File to CPAN version 1.825

  [DELTA]

  1.825 24 Jan 2012

    * t/db-btree.t - fix use of "length @array"
      [RT ##74336]

  and [perl #108970]

12 years agoIncrease $overload::VERSION to 1.18
Father Chrysostomos [Tue, 24 Jan 2012 20:33:49 +0000 (12:33 -0800)]
Increase $overload::VERSION to 1.18

12 years agoIn overload::AddrRef, use ‘no overloading’
Father Chrysostomos [Wed, 18 Jan 2012 21:03:32 +0000 (13:03 -0800)]
In overload::AddrRef, use ‘no overloading’

This speeds this up by about 13 times.

12 years ago[perl #108780] Make ‘no overloading’ work with qr//
Father Chrysostomos [Tue, 24 Jan 2012 18:24:21 +0000 (10:24 -0800)]
[perl #108780] Make ‘no overloading’ work with qr//

Traditionally, overload::StrVal(qr//) has returned
Regexp=SCALAR(0xc0ffee), and later Regexp=REGEXP(0xc0c0a) when regexps
were made into first-class SVs.

When the overloading pragma was added in 5.10.1, qr// things were not
accounted for, so they would still stringify as (?-xism:) even with
‘no overloading’ (or as (?^:) under 5.14).

This commit makes the overloading pragma work with qr// things, so
that they stringify the same way as overload::StrVal; i.e., as
Regexp=REGEXP(0xbe600d).

12 years agoMove amagic hint checking to new function
Father Chrysostomos [Tue, 24 Jan 2012 17:46:11 +0000 (09:46 -0800)]
Move amagic hint checking to new function

so that stringification will be able to use it, too.

12 years agoCall FETCH once for stacked filetest ops
Father Chrysostomos [Tue, 24 Jan 2012 17:23:02 +0000 (09:23 -0800)]
Call FETCH once for stacked filetest ops

12 years agoskip sigdispatch.t on cygwin RT#88814
Reini Urban [Tue, 24 Jan 2012 15:30:47 +0000 (09:30 -0600)]
skip sigdispatch.t on cygwin RT#88814

12 years ago[perl #77388] Make stacked -t work
Father Chrysostomos [Tue, 24 Jan 2012 07:36:29 +0000 (23:36 -0800)]
[perl #77388] Make stacked -t work

Up till now, -t was popping too much off the stack when stacked with
other filetest operators.

Since the special use of _ doesn’t apply to -t, we cannot simply have
it use _ when stacked, but instead we pass the argument down from the
previous op.

To facilitate this, the whole stacked mechanism has to change.

As before, in an expression like -r -w -x, -x  and -w are flagged
as ‘stacking’ ops (followed by another filetest), and -w and -r are
flagged as stacked (preceded by another filetest).

Stacking filetest ops no longer return a false value to the next op
when a test fails, and stacked ops no longer check the truth of the
value on the stack to determine whether to return early (if it’s
false).

The argument to the first filetest is now passed from one op to
another.  This is similar to the mechanism that overloaded objects
were already using.  Now it applies to any argument.

Since it could be false, we cannot rely on the boolean value of the
stack item.  So, stacking ops, when they return false, now traverse
the ->op_next pointers and find the op after the last stacked op.
That op is returned to the runloop.  This short-circuiting is proba-
bly faster than calling every subsequent op (a separate function call
for each).

Filetest ops other than -t continue to use the last stat buffer when
stacked, so the argument on the stack is ignored.

But if the op is preceded by nothing other than -t (where preceded
means on the right, since the ops are evaluated right-to-left), it
*does* use the argument on the stack, since -t has not set the last
stat buffer.

The new OPpFT_AFTER_t flag indicates that a stacked op is preceded by
nothing other than -t.

In ‘-e -t foo’, the -e gets the flag, but not in ‘-e -t -r foo’,
because -r will have saved the stat buffer, so -e can just use that.

12 years ago[rt.cpan.org #74289] Don’t make *CORE::foo read-only
Father Chrysostomos [Tue, 24 Jan 2012 05:45:21 +0000 (21:45 -0800)]
[rt.cpan.org #74289] Don’t make *CORE::foo read-only

newATTRSUB requires the sub name to be passed to it wrapped up in
a const op.

Commit 8756617677dbd allowed it to accept a GV that way, since
S_maybe_add_coresub (in gv.c) needed to pass it an existing GV not in
the symbol table yet (to simplify code elsewhere).

This had the inadvertent side-effect of making the GV read-only, since
that’s what the check function for const ops does.

Even if we were to call this a feature, it wouldn’t make sense as
implemented, as GVs for non-ampable (&-able) subs like *CORE::chdir
were not being made read-only.

This commit adds a new flag to newATTRSUB, to allow a GV to be passed
as the o parameter, instead of an op.  While this may look as though
it’s undoing the simplification in commit 8756617677dbd by adding
more code, the new code is still conceptually simpler and more
straightforward.

Since newATTRSUB is in the API, I had to add a new _flags variant.
(How did newATTRSUB get into the API to begin with?)

In adding a test, I also discovered that ‘used once’ warnings
were applying to these subs, which is obviously wrong.  Commit
8756617677dbd caused that, too, as it was relying on the side-effect
of newATTRSUB doing a GV lookup.

This fixes that, too, by turning on the multi flag in
S_maybe_add_coresub.

12 years agoFix bad pointer size in has_trailing_nul
Eric Brine [Tue, 24 Jan 2012 02:55:52 +0000 (18:55 -0800)]
Fix bad pointer size in has_trailing_nul

12 years agopoint git-using installers to pod/perlgit
Ricardo Signes [Tue, 24 Jan 2012 02:50:11 +0000 (21:50 -0500)]
point git-using installers to pod/perlgit

...this change was promised to Jim Keenan

12 years agoperldelta for ~~ fix
Ricardo Signes [Tue, 24 Jan 2012 02:27:35 +0000 (21:27 -0500)]
perldelta for ~~ fix

12 years agoEnforce Any ~~ Object smartmatch precedence
Leon Timmermans [Mon, 23 Jan 2012 01:01:00 +0000 (02:01 +0100)]
Enforce Any ~~ Object smartmatch precedence

12 years agoIncrease $B::VERSION to 1.34
Father Chrysostomos [Tue, 24 Jan 2012 02:13:55 +0000 (18:13 -0800)]
Increase $B::VERSION to 1.34

12 years agoB.xs add missing B::COP::stashflags
Reini Urban [Mon, 23 Jan 2012 18:52:02 +0000 (12:52 -0600)]
B.xs add missing B::COP::stashflags

Threaded perl added this field with 5.15.4 for utf8 stashes.

12 years agoB.pm POD: revise 44f7f2d5b1 on IoFLAGS
Reini Urban [Mon, 23 Jan 2012 18:10:05 +0000 (12:10 -0600)]
B.pm POD: revise 44f7f2d5b1 on IoFLAGS

IoFLAGS are not defined in perliol.h

12 years agoMore un-TODOs and two typos in vms/ext/filespec.t.
Craig A. Berry [Sun, 22 Jan 2012 14:29:47 +0000 (08:29 -0600)]
More un-TODOs and two typos in vms/ext/filespec.t.

Two tests that actually pass under Extended Filename Syntax and
two that will now pass if we give them the correct expectations.

12 years agoHandle directories with dots in fileify under EFS.
Craig A. Berry [Sun, 22 Jan 2012 14:03:26 +0000 (08:03 -0600)]
Handle directories with dots in fileify under EFS.

When Extended Filename Syntax (EFS) is in effect, it's legal for
directory names to contain dots that are not directory delimiters.
This commit escapes such dots when they are part of the file
portion of the fileified directory spec.

This gets two more of the vms/ext/filespec.t tests passing when
EFS is in effect.

12 years agoperlpodspec: Remove outdated text
Karl Williamson [Mon, 23 Jan 2012 18:19:51 +0000 (11:19 -0700)]
perlpodspec: Remove outdated text

This warning against using alternate text with hyperlinks is no longer
valid, See http://code.activestate.com/lists/perl-pod-people/1393/

And relevant changes:

https://github.com/theory/pod-simple/commit/1e61e819debf9c7c23907d7bb9e37855665fd595
http://perl5.git.perl.org/perl.git/commit/f6e963e4dd62b8e3c01b31f4a4dd57e47e104997
https://github.com/theory/test-pod/commit/ae6a44894eda4fd09fb412d837efe543628cd7d6

12 years agosv.c:sv_utf8_encode: simplify code
Father Chrysostomos [Mon, 23 Jan 2012 06:58:58 +0000 (22:58 -0800)]
sv.c:sv_utf8_encode: simplify code

sv_force_normal already croaks for read-only variables

12 years agouniversal.c:XS_utf8_decode: rmv redundant code
Father Chrysostomos [Mon, 23 Jan 2012 06:56:50 +0000 (22:56 -0800)]
universal.c:XS_utf8_decode: rmv redundant code

SvPV_force_nolen already calls sv_force_normal for us.

12 years agoDon’t allow read-only regexps to be tied
Father Chrysostomos [Mon, 23 Jan 2012 06:48:42 +0000 (22:48 -0800)]
Don’t allow read-only regexps to be tied

Since the test triggered another bug in freeing read-only
regexps, this commit fixes that too.

12 years agoperldelta: Rmv git relict line
Karl Williamson [Mon, 23 Jan 2012 14:44:38 +0000 (07:44 -0700)]
perldelta: Rmv git relict line

This line was a result of clearing a rebasing conflict, and I failed to
remove it.

12 years agosv_force_normal: Don’t confuse regexps with cows
Father Chrysostomos [Mon, 23 Jan 2012 06:39:47 +0000 (22:39 -0800)]
sv_force_normal: Don’t confuse regexps with cows

Otherwise we get assertion failures and possibly corrupt
string tables.

12 years agoEnglish.pm: Remove fallacious comment
Father Chrysostomos [Mon, 23 Jan 2012 06:20:36 +0000 (22:20 -0800)]
English.pm: Remove fallacious comment

12 years agoIncrease $English::VERSION to 1.05
Father Chrysostomos [Mon, 23 Jan 2012 06:20:00 +0000 (22:20 -0800)]
Increase $English::VERSION to 1.05

12 years ago[perl #108794] Call special blocks in void context
Father Chrysostomos [Sun, 22 Jan 2012 23:59:16 +0000 (15:59 -0800)]
[perl #108794] Call special blocks in void context

Now BEGIN blocks, etc., are called in void context, so the result of
evaluating the last statement is not wastefully copied.

12 years ago[rt.cpan.org #72767] Don’t propagate warnings into do-file
Father Chrysostomos [Sun, 22 Jan 2012 22:07:04 +0000 (14:07 -0800)]
[rt.cpan.org #72767] Don’t propagate warnings into do-file

I completely forgot about do-file when, in commit f45b078d2, I stopped
eval from localising hints at run time.  The result was that warning
hints were propagating into do-file.

12 years agoRegen known_pod_issues.dat
Chris 'BinGOs' Williams [Sun, 22 Jan 2012 21:43:23 +0000 (21:43 +0000)]
Regen known_pod_issues.dat

12 years agoUpdate Pod-Parser to CPAN version 1.50
Chris 'BinGOs' Williams [Sun, 22 Jan 2012 20:07:04 +0000 (20:07 +0000)]
Update Pod-Parser to CPAN version 1.50

  [DELTA]

  16-Jan-2011           Marek Rouchal                        <marekr@cpan.org>
  -----------------------------------------------------------------------------
  Version 1.50
  + fix whitespace (esp. CR [\r] related) issues with different Perl versions
    on Windows (with Perl 5.8.8 [Activestate], and 5.6.1 [SUA])
  + merge latest core (5.14.x) changes to this distro
  + CPAN#73446: fix minor POD error in InputObjects.pm
  + CPAN#43955: podchecker fails to detect superfluous =cut directive:
    implemented (and extended by a check for superfluous =pod commands) and
    documented in Pod::Checker; also added a note in the POD of all modules
    that they are part of the Pod::Parser distribution
  + CPAN#46695: use consistent version (1.50) for distribution and all Pod::
    modules in this distro (except for Pod::PlainText, which stays at 2.05)
  + CPAN#52086: mismatch between distro and module version:
    same as above
  + CPAN#55121: correction for Pod::Find and t/pod/find.t on VMS
  + CPAN#47473: podchecker on L<> url with alt text
    ... causes an error in Pod::Checker now
  + CPAN#57954: Pod::Usage does not find perldoc when perl is relocatable
    ... use $Config{scriptdirexp} instead of scriptdir
  + CPAN#61223: podchecker notice missing blank line before command
    implemented with more tests in poderrs.t and self test of all *.pms
  + CPAN#66614: parse of no final newline vs perl -w
    ... a rare case, but fixed nevertheless
  + CPAN#68157: Pod-Parser-1.38/lib/Pod/Usage.pm question/bug
    ... pass through formatting options to Pod::Text
  + CPAN#70771: mishandles symbolic links in @INC
    ... fixed by making the paths in @INC absolute, using Cwd::abs_path()
  + CPAN#71139: 3 possible optimisations
    ... applied
  + several other rt.cpan.org tickets processed and closed

12 years agoSync Module-CoreList version in Maintainers.pl
Chris 'BinGOs' Williams [Sun, 22 Jan 2012 19:40:58 +0000 (19:40 +0000)]
Sync Module-CoreList version in Maintainers.pl

12 years agoperllocale: Correct various Perl version references
Karl Williamson [Sat, 21 Jan 2012 16:29:01 +0000 (09:29 -0700)]
perllocale: Correct various Perl version references

Spotted by Nicholas Clark

12 years agolocale.t: White-space, comment only
Karl Williamson [Wed, 18 Jan 2012 19:28:21 +0000 (12:28 -0700)]
locale.t: White-space, comment only

This tidies up the white space to reflect a previous commit which added
and subtracted blocks, and reflows to fit in an 80 column window,
removes trailing white space, and rewords a comment.

s

12 years agoAdd :not_characters parameter to 'use locale'
Karl Williamson [Wed, 18 Jan 2012 16:35:52 +0000 (09:35 -0700)]
Add :not_characters parameter to 'use locale'

This adds the parameter handling, tests, and documentation for this new
feature which allows locale and Unicode to play well with each other.

12 years agolocale.t: Don't bother testing locales with malformed names
Karl Williamson [Wed, 18 Jan 2012 18:26:24 +0000 (11:26 -0700)]
locale.t: Don't bother testing locales with malformed names

Instead, just fail those.

12 years agolocale.t: remove unused debug stuff
Karl Williamson [Wed, 18 Jan 2012 18:18:57 +0000 (11:18 -0700)]
locale.t: remove unused debug stuff

12 years agoperluniintro: Shorten too-long verbatim lines
Karl Williamson [Wed, 18 Jan 2012 17:57:44 +0000 (10:57 -0700)]
perluniintro: Shorten too-long verbatim lines

12 years agoperllocale: Remove trailing blanks
Karl Williamson [Wed, 18 Jan 2012 17:38:53 +0000 (10:38 -0700)]
perllocale: Remove trailing blanks

12 years agolocale.pm: Pod tweaks
Karl Williamson [Wed, 18 Jan 2012 16:35:07 +0000 (09:35 -0700)]
locale.pm: Pod tweaks

12 years agoregexp.h: Update comment
Karl Williamson [Mon, 16 Jan 2012 22:21:38 +0000 (15:21 -0700)]
regexp.h: Update comment

12 years agoperllocale: Add caveat on UTF-8 locales
Karl Williamson [Mon, 16 Jan 2012 22:18:05 +0000 (15:18 -0700)]
perllocale: Add caveat on UTF-8 locales

It turns out that the C library may not handle UTF-8 locales properly,
and the docs should mention that instead of blindly encouraging their
use.

12 years agoop.c: Call macro instead of using explicit bit
Karl Williamson [Mon, 16 Jan 2012 22:13:11 +0000 (15:13 -0700)]
op.c: Call macro instead of using explicit bit

The macro hides the bit name.

12 years agolocale.t: In-line function to its only call
Karl Williamson [Mon, 16 Jan 2012 20:55:09 +0000 (13:55 -0700)]
locale.t: In-line function to its only call

This will be needed in future commits

12 years agolocale.t: White-space, comment-only changes
Karl Williamson [Mon, 16 Jan 2012 20:54:25 +0000 (13:54 -0700)]
locale.t: White-space, comment-only changes

To catch up with previous changes.

12 years agolocale.t: Add names for some tests
Karl Williamson [Mon, 16 Jan 2012 20:32:03 +0000 (13:32 -0700)]
locale.t: Add names for some tests

12 years agolocale.t: Don't use hard-coded test numbers
Karl Williamson [Mon, 16 Jan 2012 20:14:11 +0000 (13:14 -0700)]
locale.t: Don't use hard-coded test numbers

This was rather painful to convert the hard-coded numbers into
calculated ones so that tests could be added and subtracted.  The debug
statements were moved to after the last test they described so the test
numbers would be calculated, and a new hash created to deal with
skipping tests and not knowing how many are skipped; otherwise the
current test number is kept track of and incremented as needed.

12 years agolocalet.t: Change variable name
Karl Williamson [Mon, 16 Jan 2012 19:53:35 +0000 (12:53 -0700)]
localet.t: Change variable name

to avoid the ambiguity of 'last'

12 years agolocale.t: croak isn't loaded
Karl Williamson [Mon, 16 Jan 2012 19:51:13 +0000 (12:51 -0700)]
locale.t: croak isn't loaded

so use die instead

12 years agolocale.t: Revise tests
Karl Williamson [Mon, 16 Jan 2012 19:40:17 +0000 (12:40 -0700)]
locale.t: Revise tests

As indicated in the comment, the earlier incarnation of this commented
out "no locale" thus defeating the purpose of the tests.

12 years agolocale.t: Comments, white-space only
Karl Williamson [Mon, 16 Jan 2012 00:30:55 +0000 (17:30 -0700)]
locale.t: Comments, white-space only

12 years agolocale.t: Remove unset variables.
Karl Williamson [Mon, 16 Jan 2012 00:16:53 +0000 (17:16 -0700)]
locale.t: Remove unset variables.

These were currently useless.

12 years agolocale.t: Calculate locale values AFTER setting the locale
Karl Williamson [Mon, 16 Jan 2012 00:12:47 +0000 (17:12 -0700)]
locale.t: Calculate locale values AFTER setting the locale

This test was using the previous loop iteration's locale's values, since
it did the set after calculating them.

12 years agolocale.t: Don't test a locale twice
Karl Williamson [Mon, 16 Jan 2012 00:10:35 +0000 (17:10 -0700)]
locale.t: Don't test a locale twice

Don't add it to the list if already there.

12 years agolocale.t: Remove hard-coded test number
Karl Williamson [Sun, 15 Jan 2012 18:21:25 +0000 (11:21 -0700)]
locale.t: Remove hard-coded test number

The subroutine with the hard-coded value used to forward reference the
number of tests is no longer needed, as this and previous commits move
the place where the number is needed to afterwards.

12 years agolocale.t: Move test plan to end
Karl Williamson [Sun, 15 Jan 2012 18:16:57 +0000 (11:16 -0700)]
locale.t: Move test plan to end

The current code goes through a lot of machinations to know
1..n
at the beginning.  Nowadays, one can simply calculate this as we go
along and print it out at the end.  If the test fails in the middle, the
lack of a plan will be marked as a failure.

12 years agolocale.t: Remove test numbers from calls
Karl Williamson [Sun, 15 Jan 2012 17:53:42 +0000 (10:53 -0700)]
locale.t: Remove test numbers from calls

This continues the process of converting this .t to not have hard-coded
test numbers, making it easier to add/remove tests.

12 years agolocale.t: Start removing hard-coded test numbers
Karl Williamson [Sun, 15 Jan 2012 17:40:43 +0000 (10:40 -0700)]
locale.t: Start removing hard-coded test numbers

This .t uses it's own TAP output.  I presume to avoid any issues with
tainting.  This commit starts the process of making it easier to add
tests by having the ok() routine keep track of test numbers.

12 years agoRestore triple-dot directory spec tests in vms/ext/filespec.t.
Craig A. Berry [Sat, 21 Jan 2012 03:29:08 +0000 (21:29 -0600)]
Restore triple-dot directory spec tests in vms/ext/filespec.t.

1fe570cc5e24eecfb07059e53e95fa864bb44142 declared directory
components containing '...' as either 'not translatable' or created
the expectation that each dot should be individually escaped when
translating between Unix and VMS directory specs.  That doesn't
really make sense since in both formats it means any number of
intervening directories, plus there was already code of long
standing that handles it.  So get the tests in this regard back
in line with reality.

12 years agoStart rationalizing Unix-to-VMS file spec conversion code.
Craig A. Berry [Sat, 21 Jan 2012 00:04:20 +0000 (18:04 -0600)]
Start rationalizing Unix-to-VMS file spec conversion code.

Back in 360732b5267d5dfef32b932bf13ceebc6683df74, we started using
an experimental new conversion routine that had been designed for
a CRTL feature called POSIX-compliant pathnames but at this point
was added as a jumping-off place halfway through the existing code
for converting Unix-format file specifications to VMS format. But
only for newer versions of VMS and only when a different and
unrelated feature called Extended Filename Syntax (EFS) had been
enabled.

But this newer implementation (somewhat inauspiciously named
posix_to_vmsspec_hardway) is less complete and more buggy than the
older implementation, and it imposes expectations that have nothing
to do with EFS, not to mention making for a larger, version-
specific support matrix.

So for now go back to the older, better-tested (though imperfect)
version and simplify the differences made by invoking EFS.  None
of this makes any difference at all unless non-default CRTL
features have been enabled.

12 years agoVMS-specific symlink tweak for stat.t
Craig A. Berry [Fri, 20 Jan 2012 23:19:43 +0000 (17:19 -0600)]
VMS-specific symlink tweak for stat.t

If the target of a symlink has a version number in the symlink,
that makes the symlink implementation unable to locate it, so
trim off the version.

12 years ago[perl #82772] utf8::decode: Don’t read past SvCUR
Father Chrysostomos [Fri, 20 Jan 2012 21:29:38 +0000 (13:29 -0800)]
[perl #82772] utf8::decode: Don’t read past SvCUR

12 years agoWarn for stat(*unopened) after statting file
Father Chrysostomos [Fri, 20 Jan 2012 21:12:14 +0000 (13:12 -0800)]
Warn for stat(*unopened) after statting file

Statting an existing file used to prevent a subsequent stat(*unopened)
from warning if the GV happened to have no IO.  If the GV *did* have
an IO, but an unopened one, it *would* warn.

This inconsistency was introduced in 5.10.0 with commit 5228a96c60
(which was also backported to 5.8.9).

12 years agopp_sys.c:pp_stat: Change scope of havefp var
Father Chrysostomos [Fri, 20 Jan 2012 20:59:35 +0000 (12:59 -0800)]
pp_sys.c:pp_stat: Change scope of havefp var

This is only used in the if(gv != PL_defgv) block now.  Also, it was
being used uninitialized for bad iorefs, probably resulting in random warning suppression (untested).

12 years ago[perl #71002] stat() on unopened fh _
Father Chrysostomos [Fri, 20 Jan 2012 20:55:17 +0000 (12:55 -0800)]
[perl #71002] stat() on unopened fh _

stat _ was producing an erroneous warning about an unopened filehandle
with _.  But _ isn’t a real filehandle and is special-cased, so it
shouldn’t warn.

See also commit 8080e3c8.

12 years agoSafe.pm: Make sure SWASHNEW is properly loaded
Karl Williamson [Fri, 20 Jan 2012 21:55:43 +0000 (14:55 -0700)]
Safe.pm: Make sure SWASHNEW is properly loaded

This module was depending on testing code points in the upper Latin1
range causing utf8_heavy.pl.  However a recent performance improvement
caused those code points to skip the loading.  This just changes the
code points to two higher values that cause it to load, and until and if
it changes again, will fix things.

12 years agoCreate a perldelta for 5.15.8
Chris 'BinGOs' Williams [Fri, 20 Jan 2012 21:26:09 +0000 (21:26 +0000)]
Create a perldelta for 5.15.8

12 years agobegin filling the 5.16.0 delta from 5.15.2
Ricardo Signes [Fri, 20 Jan 2012 15:52:22 +0000 (10:52 -0500)]
begin filling the 5.16.0 delta from 5.15.2

This is largely a copy and paste job.  Once I copy and paste most
things in, I will then start condensing them.

This does *not* include the following sections from perl5152delta:

* module updates
* configuration and compilation changes
* internals changes

12 years agobegin filling the 5.16.0 delta from 5.15.1
Ricardo Signes [Fri, 20 Jan 2012 15:47:53 +0000 (10:47 -0500)]
begin filling the 5.16.0 delta from 5.15.1

This is largely a copy and paste job.  Once I copy and paste
most things in, I will then start condensing them.

This does *not* include the following sections from perl5151delta:

* module updates
* configuration and compilation changes
* internals changes

12 years agobegin filling the 5.16.0 delta from 5.15.0
Ricardo Signes [Fri, 20 Jan 2012 15:38:38 +0000 (10:38 -0500)]
begin filling the 5.16.0 delta from 5.15.0

This is largely a copy and paste job.  Once I copy and paste most
things in, I will then start condensing them.

This does *not* include the following sections from perl5150delta:

* module updates
* configuration and compilation changes
* internals changes

12 years agoAdd v5.15.7 epigraph to the epigraphs file
Chris 'BinGOs' Williams [Fri, 20 Jan 2012 20:32:47 +0000 (20:32 +0000)]
Add v5.15.7 epigraph to the epigraphs file

12 years agoMerge branch 'bingos/release-5.15.7' into blead
Chris 'BinGOs' Williams [Fri, 20 Jan 2012 20:02:55 +0000 (20:02 +0000)]
Merge branch 'bingos/release-5.15.7' into blead

12 years agoCopyright update for ExtUtils::{ParseXS,Typemaps}
Steffen Mueller [Fri, 20 Jan 2012 19:10:35 +0000 (20:10 +0100)]
Copyright update for ExtUtils::{ParseXS,Typemaps}

Also removes a few lines of dead code

12 years agoFix parse problem with embedded typemaps
Steffen Mueller [Fri, 20 Jan 2012 19:08:55 +0000 (20:08 +0100)]
Fix parse problem with embedded typemaps

If an embedded typemap was found in certain locations, we got spurious
parse failures. Mea culpa.

12 years ago5.14.0 has been released, so update the versions used for support examples.
Nicholas Clark [Fri, 20 Jan 2012 16:40:41 +0000 (17:40 +0100)]
5.14.0 has been released, so update the versions used for support examples.

Also state explicitly that 5.10.1 and earlier are now out of support.

12 years agoUpdate perlhist (also removing some annoying trailing whitespace)
Chris 'BinGOs' Williams [Fri, 20 Jan 2012 14:44:30 +0000 (14:44 +0000)]
Update perlhist (also removing some annoying trailing whitespace)

12 years agoFinalise perldelta
Chris 'BinGOs' Williams [Fri, 20 Jan 2012 14:42:18 +0000 (14:42 +0000)]
Finalise perldelta

12 years agoUpdate Module::CoreList for v5.15.7
Chris 'BinGOs' Williams [Fri, 20 Jan 2012 14:40:12 +0000 (14:40 +0000)]
Update Module::CoreList for v5.15.7

12 years agoBump the perl version in various places for v5.15.7
Chris 'BinGOs' Williams [Fri, 20 Jan 2012 12:57:49 +0000 (12:57 +0000)]
Bump the perl version in various places for v5.15.7

12 years agoRemoved more boilerplating from perldelta
Chris 'BinGOs' Williams [Fri, 20 Jan 2012 12:46:10 +0000 (12:46 +0000)]
Removed more boilerplating from perldelta

12 years agoUpdate Acknowledgements in perldelta
Chris 'BinGOs' Williams [Fri, 20 Jan 2012 11:04:47 +0000 (11:04 +0000)]
Update Acknowledgements in perldelta