This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
8 years ago[perl #125381] fix -Cnn parsing
Hugo van der Sanden [Thu, 11 Jun 2015 11:25:40 +0000 (12:25 +0100)]
[perl #125381] fix -Cnn parsing

Commit 22ff313068 for [perl #123814] inadvertently changed the logic when
parsing a numeric parameter to the -C option, such that the successfully
parsed number was not saved as the option value if it parsed to the end
of the argument.

8 years agoclean up sv_isobject usage
Daniel Dragan [Sun, 13 Jul 2014 12:20:31 +0000 (08:20 -0400)]
clean up sv_isobject usage

-previous usage proves getmagic is unnecessary or ignored or already called
  S_do_smartmatch
  Perl_sv_does_sv

-in pp_dbmopen dont call sv_isobject twice in a row on the same SV in 1
 permutation

8 years agoUpdate release schedule
Steve Hay [Wed, 10 Jun 2015 07:49:04 +0000 (08:49 +0100)]
Update release schedule

5.22.0 is out; development is now 5.23, leading towards 5.24.0 next May.
5.22.1 is expected sometime around August/September (around the same time
as 5.20.1 was last year).
5.20.3 is expected sometime before then, probably July.

8 years agoperldelta for d484df69ed26
Tony Cook [Wed, 10 Jun 2015 00:23:19 +0000 (10:23 +1000)]
perldelta for d484df69ed26

8 years ago[perl #125347] allow truncate to work on large files on Win32
Tony Cook [Tue, 9 Jun 2015 23:48:09 +0000 (09:48 +1000)]
[perl #125347] allow truncate to work on large files on Win32

truncate($filename, $size) was using a simple PerlIO_open() to open
the file, which on Win32 defaults to a text mode open.

Unfortunately, on a text mode open(), MSVCRT attempts to seek to the
end of file using only 32-bit offsets, which fails.

For good measure, add in O_LARGEFILE if it's available, which may
prevent similar issues on other platforms.

Also, remove the erroneous SETERRNO() added by 375ed12a to the open
failure branch, PerlLIO_open() should already set errno on failure, so
we get sane error messages when the open fails.

8 years agoadd warnings 7fatal testcase for #123398
Reini Urban [Thu, 23 Apr 2015 11:04:05 +0000 (13:04 +0200)]
add warnings 7fatal testcase for #123398

8 years ago[perl #125369] - Set correct flags for smartmatch in certain cases
Matthew Horsfall [Tue, 9 Jun 2015 20:27:40 +0000 (16:27 -0400)]
[perl #125369] - Set correct flags for smartmatch in certain cases

Previously the aslice flags would end up as 255 in this case:

  $ perl -MO=Concise,-debug -e '@nums[0..1] ~~ []' | grep OP_ASLICE -A 2
  Smartmatch is experimental at -e line 1.
  -e syntax OK
   op_ppaddr PL_ppaddr[OP_ASLICE]
   op_type 131
   op_flags 255

Now:

  $ perl -MO=Concise,-debug -e '@nums[0..1] ~~ []' | grep OP_ASLICE -A 2
  Smartmatch is experimental at -e line 1.
  -e syntax OK
   op_ppaddr PL_ppaddr[OP_ASLICE]
   op_type 139
   op_flags 55

8 years agoGCC doesn't understand the -subsystem:console option
Jan Dubois [Tue, 9 Jun 2015 17:56:55 +0000 (10:56 -0700)]
GCC doesn't understand the -subsystem:console option

This issue was introduced in commit 269713a1

Ref https://rt.perl.org/Ticket/Display.html?id=125217

8 years agoPorting/checkAUTHORS.pl: Sort author names using Unicode collation rules
Thomas Sibley [Sun, 15 Feb 2015 19:25:18 +0000 (11:25 -0800)]
Porting/checkAUTHORS.pl: Sort author names using Unicode collation rules

This ensures that authors like Ævar Arnfjörð Bjarmason sort with the As
in perldelta ACKNOWLEDGEMENTS sections.  Previously Ævar appeared at the
end.

8 years agoperldelta for 46b27d2f2c37
Tony Cook [Tue, 9 Jun 2015 02:19:23 +0000 (12:19 +1000)]
perldelta for 46b27d2f2c37

8 years agodon't fatalize warnings during unwinding (#123398)
Lukas Mai [Thu, 12 Feb 2015 12:29:29 +0000 (13:29 +0100)]
don't fatalize warnings during unwinding (#123398)

8 years agoDetect broken AIX fmodl.
Jarkko Hietaniemi [Mon, 8 Jun 2015 23:51:00 +0000 (19:51 -0400)]
Detect broken AIX fmodl.

(observed at least in AIX 6.1)

8 years agosunmath.h is only used for builds using long doubles
Jan Dubois [Sat, 6 Jun 2015 00:18:20 +0000 (17:18 -0700)]
sunmath.h is only used for builds using long doubles

8 years agobisect-runner.pl: Fix pod.t failures
Matthew Horsfall [Mon, 8 Jun 2015 17:07:48 +0000 (13:07 -0400)]
bisect-runner.pl: Fix pod.t failures

8 years agobisect.pl: More doc/comment fixups
Matthew Horsfall [Mon, 8 Jun 2015 16:43:28 +0000 (12:43 -0400)]
bisect.pl: More doc/comment fixups

8 years agobisect.pl: Slight pod fix to CPAN::MyConfig mentions
Matthew Horsfall [Mon, 8 Jun 2015 16:30:50 +0000 (12:30 -0400)]
bisect.pl: Slight pod fix to CPAN::MyConfig mentions

8 years agobisect.pl: Allow custom CPAN::MyConfig when using --module/--with-module
Matthew Horsfall [Mon, 8 Jun 2015 15:45:04 +0000 (11:45 -0400)]
bisect.pl: Allow custom CPAN::MyConfig when using --module/--with-module

8 years agobisect.pl: CPAN already writes out CPAN::MyConfig, no need to do it again.
Matthew Horsfall [Mon, 8 Jun 2015 15:21:08 +0000 (11:21 -0400)]
bisect.pl: CPAN already writes out CPAN::MyConfig, no need to do it again.

8 years agoWhen bisecting with modules, actually use a fresh build dir every build.
Matthew Horsfall (alh) [Sun, 19 Apr 2015 15:07:54 +0000 (11:07 -0400)]
When bisecting with modules, actually use a fresh build dir every build.

8 years agoDon't let PERL_MM_OPT/PERL_MB_OPT interfere with bisecting.
Matthew Horsfall (alh) [Sun, 19 Apr 2015 13:43:21 +0000 (09:43 -0400)]
Don't let PERL_MM_OPT/PERL_MB_OPT interfere with bisecting.

INSTALL_BASE for example would cause modules to be installed in the
wrong place during a bisect.

8 years agoAdd notes about bisecting modules that need displays.
Matthew Horsfall (alh) [Sun, 19 Apr 2015 10:52:46 +0000 (06:52 -0400)]
Add notes about bisecting modules that need displays.

Thanks to Andreas for the examples.

8 years agoFor bisecting, create a CPAN::MyConfig under --module or --with-module.
Matthew Horsfall (alh) [Sun, 19 Apr 2015 10:34:00 +0000 (06:34 -0400)]
For bisecting, create a CPAN::MyConfig under --module or --with-module.

If you bisect with --module or --with-module, older perls need a
CPAN::MyConfig, otherwise they will stop to ask for user input. This
commit adds the ability to automatically create one if necessary (with
some user interaction required.)

8 years agoWhen bisecting with --module=, don't stop to ask user for input
Matthew Horsfall (alh) [Sat, 18 Apr 2015 19:56:34 +0000 (15:56 -0400)]
When bisecting with --module=, don't stop to ask user for input

8 years agoAllow installing modules from CPAN to be used inside of bisect tests.
Matthew Horsfall (alh) [Sat, 18 Apr 2015 19:26:31 +0000 (15:26 -0400)]
Allow installing modules from CPAN to be used inside of bisect tests.

For example:

  .../Porting/bisect.pl --with-module=Moose -e 'use Moose; 1;'

This is different from --module in that --module only tests that a
cpan module can or cannot install properly (and pass its tests).

8 years agoAdapt Andreas' cpan bisector tool for perl core.
Matthew Horsfall (alh) [Sat, 18 Apr 2015 13:54:23 +0000 (09:54 -0400)]
Adapt Andreas' cpan bisector tool for perl core.

Original can be seen in bin/makeperl.pl of http://repo.or.cz/r/andk-cpan-tools.git

Now we can:

  .../Porting/bisect.pl --module=autobox

And see when it broke!

8 years agomake PadlistNAMES() lvalue again.
David Mitchell [Mon, 8 Jun 2015 08:15:17 +0000 (09:15 +0100)]
make PadlistNAMES() lvalue again.

The PadlistNAMES() macro was introduced with v5.17.3-69-g86d2498.
This macro happened to be lvalue-capable, although it wasn't documented
as such.

v5.21.6-163-g9b7476d as a side effect, broke the lvalueness, which broke
Coro.

This commit restores the lvalueness.

8 years agoperldelta for 342634f3c8ce, 16d5aac12f61
Tony Cook [Mon, 8 Jun 2015 02:29:46 +0000 (12:29 +1000)]
perldelta for 342634f3c8ce16d5aac12f61

8 years agothe #define FOO /* BAR */ doesn't expand into /* BAR */
Jarkko Hietaniemi [Mon, 8 Jun 2015 02:19:08 +0000 (22:19 -0400)]
the #define FOO /* BAR */ doesn't expand into /* BAR */

(the comments are whitespace and eaten away (yum) first)

8 years agoAdd win32/GNUmakefile to build with GNU Make on Win32
Tony Cook [Mon, 8 Jun 2015 02:14:37 +0000 (12:14 +1000)]
Add win32/GNUmakefile to build with GNU Make on Win32

8 years agoupdate to 5.23.0 and update with changes from the other makefiles
Tony Cook [Mon, 8 Jun 2015 02:13:54 +0000 (12:13 +1000)]
update to 5.23.0 and update with changes from the other makefiles

8 years agokmx's original GNUmakefile
kmx [Tue, 26 May 2015 01:53:50 +0000 (11:53 +1000)]
kmx's original GNUmakefile

8 years agoLink typo in last minute tweak.
Jarkko Hietaniemi [Sun, 7 Jun 2015 21:42:57 +0000 (17:42 -0400)]
Link typo in last minute tweak.

8 years agoForgot to adjust this: quadmath is not long doubles.
Jarkko Hietaniemi [Sun, 7 Jun 2015 21:42:10 +0000 (17:42 -0400)]
Forgot to adjust this: quadmath is not long doubles.

8 years agoquadmath: long long versus round/trunc
Jarkko Hietaniemi [Sat, 6 Jun 2015 12:47:11 +0000 (08:47 -0400)]
quadmath: long long versus round/trunc

8 years agoregen/mk_invlists.pl: Add dependency
Karl Williamson [Wed, 1 Apr 2015 16:26:25 +0000 (10:26 -0600)]
regen/mk_invlists.pl: Add dependency

If the added script changes, it may affect the output of mk_invlists.pl,
so needs to be added as a dependency.

8 years agoregen/regcharclass.pl: Add dependencies
Karl Williamson [Wed, 1 Apr 2015 16:22:36 +0000 (10:22 -0600)]
regen/regcharclass.pl: Add dependencies

If either of these two scripts change, it could affect this script, so
things need to be regenerated.

8 years agomktables: Reduce input fractions to lowest terms
Karl Williamson [Wed, 1 Apr 2015 16:06:45 +0000 (10:06 -0600)]
mktables: Reduce input fractions to lowest terms

It turns out that the rational numbers furnished by the Unicode data are
not guaranteed to be in lowest terms.  Version 8 is the first version
that has them this way.  Add code to reduce them in preparation for that
release.

8 years agoFix Scalar-List-Utils build on Windows; patch sent upstream
Steve Hay [Fri, 5 Jun 2015 09:39:07 +0000 (10:39 +0100)]
Fix Scalar-List-Utils build on Windows; patch sent upstream

8 years agoCONTRIBUTING.mkdn is IGNORABLE, so no need to list it as EXCLUDED
Steve Hay [Fri, 5 Jun 2015 08:02:40 +0000 (09:02 +0100)]
CONTRIBUTING.mkdn is IGNORABLE, so no need to list it as EXCLUDED

8 years agoFix up the HTTP::Tiny upgrade
Steve Hay [Fri, 5 Jun 2015 08:01:28 +0000 (09:01 +0100)]
Fix up the HTTP::Tiny upgrade

I mistakenly thought I saw corpus/ being missing from Perl, so IGNORED it
in Maintainers.pl, but actually the problem was simply that one file was
missing (it's new) -- so add it now.

8 years agoLICENCE (e.g. in libnet) is IGNORABLE too
Steve Hay [Fri, 5 Jun 2015 07:58:41 +0000 (08:58 +0100)]
LICENCE (e.g. in libnet) is IGNORABLE too

8 years agoUpgrade Scalar-List-Utils from version 1.41 to 1.42
Steve Hay [Fri, 5 Jun 2015 07:53:41 +0000 (08:53 +0100)]
Upgrade Scalar-List-Utils from version 1.41 to 1.42

8 years agoUpgrade parent from version 0.232 to 0.234
Steve Hay [Fri, 5 Jun 2015 07:51:19 +0000 (08:51 +0100)]
Upgrade parent from version 0.232 to 0.234

8 years agoUpgrade Module-Metadata from version 1.000026 to 1.000027
Steve Hay [Fri, 5 Jun 2015 07:49:15 +0000 (08:49 +0100)]
Upgrade Module-Metadata from version 1.000026 to 1.000027

8 years agoUpgrade libnet from version 3.05 to 3.06
Steve Hay [Fri, 5 Jun 2015 07:46:51 +0000 (08:46 +0100)]
Upgrade libnet from version 3.05 to 3.06

8 years agoUpgrade HTTP-Tiny from version 0.054 to 0.056
Steve Hay [Fri, 5 Jun 2015 07:42:14 +0000 (08:42 +0100)]
Upgrade HTTP-Tiny from version 0.054 to 0.056

8 years agoUpgrade Getopt-Long from version 2.45 to 2.46
Steve Hay [Fri, 5 Jun 2015 07:39:19 +0000 (08:39 +0100)]
Upgrade Getopt-Long from version 2.45 to 2.46

8 years agoUpgrade CPAN-Meta-YAML from version 0.014 to 0.016
Steve Hay [Fri, 5 Jun 2015 07:36:40 +0000 (08:36 +0100)]
Upgrade CPAN-Meta-YAML from version 0.014 to 0.016

8 years agoUpgrade CPAN-Meta-Requirements from version 2.132 to 2.133
Steve Hay [Fri, 5 Jun 2015 07:35:34 +0000 (08:35 +0100)]
Upgrade CPAN-Meta-Requirements from version 2.132 to 2.133

8 years agoHandle variant build product extensions in configure.com.
Craig A. Berry [Fri, 5 Jun 2015 03:07:14 +0000 (22:07 -0500)]
Handle variant build product extensions in configure.com.

This addresses [perl #125284].  Object files, object libraries,
shared libraries, and executables can be given architecture-specific
extensions on VMS to allow for an installation directory that can
be shared by multiple platforms.  I guess this feature seemed like
a good idea twenty years ago when disks were much smaller, but it
hasn't been working for some time because, as noted in the ticket
some configure-time compilation was inconsistent in its use of the
alternate extensions.  There were a couple more in addition to
those mentioned in the ticket.

N.B.  t/TEST still won't run as it's looking explicitly for
perl.exe so that's a TODO.

8 years agoUpdate Encode to CPAN version 2.73
Chris 'BinGOs' Williams [Thu, 4 Jun 2015 14:05:28 +0000 (15:05 +0100)]
Update Encode to CPAN version 2.73

  [DELTA]

$Revision: 2.73 $ $Date: 2015/04/15 23:14:01 $
! MANIFEST
+ t/isa.t
! Encode.pm
  Addressed RT#103253: Encode::XS does not inherit from Encode::Encoding
  https://rt.cpan.org/Public/Bug/Display.html?id=103253
! encoding.pm
+ t/encoding-locale.t
  Pulled: Rewrite of encoding::_get_locale_encoding for more portability #40
! encoding.pm
  Pulled: encoding.pm: more inlining #39
  https://github.com/dankogai/p5-encode/pull/39

8 years agoUpdate Locale-Codes to CPAN version 3.35
Chris 'BinGOs' Williams [Thu, 4 Jun 2015 14:02:29 +0000 (15:02 +0100)]
Update Locale-Codes to CPAN version 3.35

  [DELTA]

  VERSION 3.35 (2015-06-01; sbeck)

  NEW CODE(s)

  Documentation improvements

    Many changes to the formatting in the documentation to improve it. Suggested by Pete Houston.

8 years agoPrefer 'Foo->new' to 'new Foo' in examples of constructors.
Chase Whitener [Thu, 4 Jun 2015 01:09:06 +0000 (21:09 -0400)]
Prefer 'Foo->new' to 'new Foo' in examples of constructors.

Add Chase Whitener to Perl AUTHORS.

For: RT #125313

8 years agoConvert "\t" to spaces.
Shlomi Fish [Tue, 2 Jun 2015 08:53:03 +0000 (11:53 +0300)]
Convert "\t" to spaces.

\t looks differently depending on the tab width.

This and two previous commits:  For: RT #125310.

8 years agoRemove trailing whitespace.
Shlomi Fish [Tue, 2 Jun 2015 08:39:29 +0000 (11:39 +0300)]
Remove trailing whitespace.

8 years agoRemove an unnecessary right parenthesis
Shlomi Fish [Tue, 2 Jun 2015 08:29:46 +0000 (11:29 +0300)]
Remove an unnecessary right parenthesis

8 years agoUpdate Time-Piece to CPAN version 1.30
Chris 'BinGOs' Williams [Wed, 3 Jun 2015 15:06:58 +0000 (16:06 +0100)]
Update Time-Piece to CPAN version 1.30

  [DELTA]

1.30    2015-05-16
        - Stable release. Overview from 1.29:
        - Make strftime more portable + fix %z %z
        - Add many more tests
        - Clean inheritance

1.29_05   2015-05-02
        - Combine multiple 'use constant' statements (saves 0.5ms at runtime)
        - Don't leave c_epoch undef
        - deprecate parse() function
        - More constructor tests
        - export() calls Exporter::export

1.29_04   2015-04-09
        - Clean inheritance of Exporter and DynaLoader (Thanks dolmen!)
        - Refactor _strftime to use localtime/gmtime to generate tm struct

1.29_03   2015-04-04
        - Don't mix gmtime and mktime in _strftime
        - Clean whitespace at end of lines
        - Add more tests for DST issues and also strptime parsing

1.29_02   2015-04-04
        - Fix handling of %Z and %z in strftime (hopefully)
        - Remove compile warnings for int cast

1.29_01   2015-03-30
        - Fix handling of %Z and %z in strftime (in progress)
        - Remove unused constants from Time::Seconds (Thanks Xaerxess!)
        - _strftime: use system mktime to better support past/future dates
        - Relicense strptime as BSD 2-clause http://git.io/vfNSg

8 years agoUpdate Socket to CPAN version 2.019
Chris 'BinGOs' Williams [Wed, 3 Jun 2015 15:05:03 +0000 (16:05 +0100)]
Update Socket to CPAN version 2.019

  [DELTA]

  2.019   2015/04/29 17:05:33
        [BUGFIXES]
         * Provide emulations of inet_ntop/inet_pton on MSWin32 by using
           WSAStringToAddress/WSAAddressToString

8 years agoUpdate ExtUtils-CBuilder to CPAN version 0.280223
Chris 'BinGOs' Williams [Wed, 3 Jun 2015 15:02:48 +0000 (16:02 +0100)]
Update ExtUtils-CBuilder to CPAN version 0.280223

  [DELTA]

  0.280223 - 2015-06-02

  Fixed:

  - Impose deterministic order on cpp-definition options.
    Heretofore, ExtUtils::CBuilder put cpp-definition options
    into the cc command line in non-deterministic order. This
    produced noise when diffing build logs.
    Make this order deterministic.  (RT #124106)

  Added:

  - Add tests for ascii-betical order in t/04-base.t.

8 years agoModule-CoreList-5.20150520 is on CPAN now
Chris 'BinGOs' Williams [Wed, 3 Jun 2015 15:00:32 +0000 (16:00 +0100)]
Module-CoreList-5.20150520 is on CPAN now

8 years agoperldelta for 0c9375a5ca42
Tony Cook [Wed, 3 Jun 2015 05:29:12 +0000 (15:29 +1000)]
perldelta for 0c9375a5ca42

8 years ago[perl #125115] don't create file GLOB(...) when dupping a closed handle
Tony Cook [Tue, 26 May 2015 06:03:31 +0000 (16:03 +1000)]
[perl #125115] don't create file GLOB(...) when dupping a closed handle

8 years agoperldelta for 0b1fcdcc0341
Tony Cook [Wed, 3 Jun 2015 04:56:05 +0000 (14:56 +1000)]
perldelta for 0b1fcdcc0341

8 years agoFix RT#71678 (-d a command after exit) with a test.
Shlomi Fish [Mon, 25 May 2015 17:56:23 +0000 (20:56 +0300)]
Fix RT#71678 (-d a command after exit) with a test.

Credits to Heiko Eissfeldt for the reported bug, the test program and a
proposed fix.

8 years agofeature.pm remove unused lexicals
Daniel Dragan [Fri, 29 May 2015 05:48:11 +0000 (01:48 -0400)]
feature.pm remove unused lexicals

8 years agorefactor win32_get_*lib() funcs to match rest of PERL_IMPLICIT_SYS API
Daniel Dragan [Thu, 21 May 2015 21:06:27 +0000 (17:06 -0400)]
refactor win32_get_*lib() funcs to match rest of PERL_IMPLICIT_SYS API

The front end of PERL_IMPLICIT_SYS is PerlEnv_*/PerlSock_*/PerlProc_*/etc
macros. These are either macroed to C vtable calls when PERL_IMPLICIT_SYS
is on, or to the backend raw win32_*() functions when PERL_IMPLICIT_SYS
is off.

win32_get_*() were not following this convention. All this code looks like
a hack as if someone didn't have perms to edit perl.c, but they did have
perms to edit /win32, so they devise a scheme of hooking "unhooked"
win32_get_*() functions with win32.h macros for win32_get_*() to call the
Perl*() virutalization macros, and rename the original function bodies in
win32.c to g_win32_get_*() as to not make a macro loop.

Undo all of this hack by having perl.c call correct PerlEnv_* macro. This
refactoring will be useful for a future patch in #123658 to disable
win32 registry lookups.

8 years agolet Visual C 2013 builds run on WinXP
Daniel Dragan [Mon, 18 May 2015 22:07:29 +0000 (18:07 -0400)]
let Visual C 2013 builds run on WinXP

-keep the idea of -subsystem being specified only in the master makefile
 and not in XS building makefiles

8 years agoPerl_croak->croak and misc C optimizing in POSIX.pm
Daniel Dragan [Mon, 11 May 2015 03:45:58 +0000 (23:45 -0400)]
Perl_croak->croak and misc C optimizing in POSIX.pm

On threaded perls, this reduces the overhead of the rarely executed error
branches. croak does not have a context arg, Perl_croak does. This makes
the machine code the error branches slightly smaller.

update the manual xsub registration to use the new newXS_deffile added in
5.21, this saves 1 C stack arg and a hash lookup

factor out ST(1234) from T_OPAQUEPTROBJ typemap entry, the CC must emit
code to calculate ST() twice, due to sv_derived_from function possibly
rewriting the world

POSIX.dll on threaded VC 2003 32bit's .text dropped from 0x6c05 to 0x6b55

8 years agoremove redundant PERL_EXPORT_C and PERL_XS_EXPORT_C macros
Daniel Dragan [Mon, 11 May 2015 03:30:21 +0000 (23:30 -0400)]
remove redundant PERL_EXPORT_C and PERL_XS_EXPORT_C macros

These 2 macros were created for the Symbian port in commit
"Symbian port of Perl" to replace a direct "extern" token. I guess the
author was unaware of PERL_CALLCONV.

PERL_CALLCONV is the official macro to use. PERL_XS_EXPORT_C and
PERL_EXPORT_C have no usage on cpan grep except for modules with direct
copies of core headers. A defect of using PERL_EXPORT_C and
PERL_XS_EXPORT_C instead of PERL_CALLCONV is that win32/win32.h has no
knowledge of the 2 macros and doesn't set them, and os/os2ish.h doesn't
either. On Win32, since the unix defaults are used instead of Win32
specific "__declspec(dllimport)" token, XS modules use indirect function
stubs in each XS module placed by the CC to call into perl5**.dll instead
of directly calls the core C functions. I observed this in in XS-Typemap's
DLL. To simplify the API, and to decrease the amount of macros needing to
implemented to support each platform, just remove the 2 macros.

Since perl.h's fallback defaults for PERL_CALLCONV are very late in perl.h,
they need to be moved up before function declarations start in perlio.h
(perlio.h is included from iperlsys.h).

win32iop.h contains the "PerlIO" and SV" tokens, so perlio.h must be
included before win32iop.h is. Including perlio.h so early in win32.h,
causes PERL_CALLCONV not be defined since Win32 platform uses the
fallback in perl.h, since win32.h doesn't always define PERL_CALLCONV and
sometimes relies on the fallback. Since win32iop.h contains alot of
declarations, it belongs with other declarations such as those in proto.h
so move it from win32.h to perl.h.

the "free" token in struct regexp_engine conflicts with win32iop's
"#define free win32_free" so rename that member.

8 years agoFix quote() function to escape backslashes but not minus signs
Niko Tyni [Sat, 18 Apr 2015 15:59:07 +0000 (18:59 +0300)]
Fix quote() function to escape backslashes but not minus signs

The delimiter character isn't special in character square brackets,
and neither is the backslash. So '\-\' means just a range of backslash
to backslash, and the minus sign isn't included at all.

Substitution tested with GNU Solaris 9 sed programs.

Originally noticed by Kristoffer Grundstr?m.

Bug-Debian: https://bugs.debian.org/754057

8 years agoMake t/run/locale.t survive missing locales masked by LC_ALL
Niko Tyni [Wed, 15 Apr 2015 15:41:57 +0000 (18:41 +0300)]
Make t/run/locale.t survive missing locales masked by LC_ALL

If LC_ALL is set to a valid locale but another LC_* setting like LC_CTYPE
isn't, t/run/locale.t would fail because it explicitly unsets LC_ALL,
unmasking the problem underneath. All the other tests survive such
a scenario.

While this is clearly an error in the build environment, it's easy to make
the test more robust by first clearing all the locale relevant variables.

Bug-Debian: https://bugs.debian.org/782068

8 years agofix XXX on DEBUG_TOP_FLAG comment
Jim Cromie [Sat, 4 Apr 2015 18:49:27 +0000 (12:49 -0600)]
fix XXX on DEBUG_TOP_FLAG comment

DEBUG_TOP_FLAG is ORd into PL_debug when -D option is used, so that
"if (PL_debug)" can be used, w/o also enabling (or requiring) any
specific DEBUG_(.)_FLAGs.  It is used in Perl_runops_debug to
short-circuit several DEBUG_(.)_TESTs.

8 years agoperl_clone_using: Zero -DPERL_TRACE_OPS mem for sub-threads
Jim Cromie [Wed, 3 Dec 2014 17:34:36 +0000 (10:34 -0700)]
perl_clone_using: Zero -DPERL_TRACE_OPS mem for sub-threads

perl_clone_using() is missing Zero init of PL_op_exec_cnt[].  This
causes sub-threads in threaded -DPERL_TRACE_OPS builds to spew
exceedingly large op-counts at destruct.  These counts would print %x
as "ABABABAB", clearly a mem-poison value.

8 years agoperldelta for b4a10d33, 3f185657, 8db29734, 0d2463eb, 669bc510
Tony Cook [Tue, 2 Jun 2015 01:42:22 +0000 (11:42 +1000)]
perldelta for b4a10d333f1856578db297340d2463eb669bc510

8 years agolocale.c: White-space, comment only
Karl Williamson [Sun, 3 May 2015 15:43:23 +0000 (09:43 -0600)]
locale.c: White-space, comment only

Add a comment, indent some nested #if's

8 years agomktables: Under -annotate use dotted circle for combining marks
Karl Williamson [Thu, 28 May 2015 02:35:43 +0000 (20:35 -0600)]
mktables: Under -annotate use dotted circle for combining marks

Previously the NBSP was used, but the dotted circle is what Unicode uses
in their books, and it looks better.  Note that -annotate is not a
default option for mktables.

8 years agoperldelta_template: Add L<> around 2 links
Karl Williamson [Sat, 30 May 2015 16:29:12 +0000 (10:29 -0600)]
perldelta_template: Add L<> around 2 links

8 years agoPATCH: [perl #125291] perlreref misstatement
Karl Williamson [Tue, 2 Jun 2015 03:44:46 +0000 (21:44 -0600)]
PATCH: [perl #125291] perlreref misstatement

This commit fixes this, and makes a few other clarifications to the
document.  Now there is only one definition for white space, so no need
to mention the earlier differences.

8 years agoactually load vars to test its new sideeffect
Reini Urban [Fri, 24 Apr 2015 00:56:08 +0000 (20:56 -0400)]
actually load vars to test its new sideeffect

For: RT # 124369

8 years agoFix bug in Math::BigFloat's bceil() and bint() methods.
Peter John Acklam [Tue, 28 Apr 2015 11:07:43 +0000 (13:07 +0200)]
Fix bug in Math::BigFloat's bceil() and bint() methods.

- When $x is a Math::BigFloat, $x -> bceil() and $x -> bint() for -1 < $x < 0
  returns -0. Negative zero is never used by Math::Big(Int|Float), and care has
  been taken to avoid it, so this bug is surely an oversight.

- This patch fixes CPAN RT #104012.

8 years agoSpeed up Math::BigFloat -> blog().
Peter John Acklam [Fri, 24 Apr 2015 13:13:33 +0000 (15:13 +0200)]
Speed up Math::BigFloat -> blog().

- Intermediate computations in blog() increases the number of digits
  significantly in some cases. Reduce the number of digits by rounding.
  However, keep some extra digits for remaining intermediate computations
  before the final rounding.

- This patch fixes CPAN RT #43924.

8 years agoCorrect Math::BigInt -> new() for non-integer input.
Peter John Acklam [Fri, 17 Apr 2015 19:28:37 +0000 (21:28 +0200)]
Correct Math::BigInt -> new() for non-integer input.

The documentation in Math::BigInt says about input values that "Non-integer
values result in NaN." The actual behaviour doesn't comply with this.

- All input values in the range (-1,1) written as a decimal number, e.g.,
  -0.75 and 0.5, now return NaN, not 0.

- Input values with a large (absolute value) negative exponent, e.g.,
  1e-9999999, now return NaN. The former behaviour was to die with the
  message "Quantifier in {,} bigger than 32766 in regex; marked by ..."

- This patch fixes CPAN RT #61887 and CPAN RT #63038.

8 years agoCorrect bdiv() and bmod() in Math::BigRat
Peter John Acklam [Tue, 14 Apr 2015 18:56:40 +0000 (20:56 +0200)]
Correct bdiv() and bmod() in Math::BigRat

- Added support for bdiv() in list context. Added corresponding tests.

- Changed bmod() so the result corresponds to Perl's % operator, as well as
  the second output argument of bdiv() in list contest. Modified tests
  correspondingly. Now the behaviour of bmod() is consistent between
  Math::BigInt, Math::BigFloat, and Math::BigRat.

- Clearer POD for the bdiv() and bmod() methods.

8 years agoCorrect bdiv() and bmod() in Math::BigInt and Math::BigFloat
Peter John Acklam [Tue, 14 Apr 2015 13:20:14 +0000 (15:20 +0200)]
Correct bdiv() and bmod() in Math::BigInt and Math::BigFloat

- The POD documentation, as well as the comments in the code, say that
  $x->bdiv($y) in list context should return quotient $q and remainder $r
  so that $x = $q * $y + $r, and that the remainder (modulo) $r should
  correspond to Perl's % operator as well as the bmod() method. This has
  not been the actual behaviour. This patch fixes this.

- Clearer POD documentation for the bdiv() and bmod() methods.

- Changed test files to match corrected behaviour.

- Removed some duplicated tests.

8 years agoremove obsolete VOL in S_parse_body
Daniel Dragan [Fri, 27 Mar 2015 07:02:58 +0000 (03:02 -0400)]
remove obsolete VOL in S_parse_body

commit 312caa8e97 removed dJMPENV from perl_parse_body (former perl_parse)
when it created perl_parse_body and perl_parse kept the dJMPENV, but this
commit forgot to remove the VOL tag on var dosearch. Since the VOL is
only required when the function has a setjmp in it, and this function
doesn't have a setjmp in it anymore, remove the VOL tag.

8 years agoHandle fcntl(F_GETPIPE_SZ) failure in t/io/eintr.t
Dagfinn Ilmari Mannsåker [Fri, 20 Mar 2015 17:49:12 +0000 (17:49 +0000)]
Handle fcntl(F_GETPIPE_SZ) failure in t/io/eintr.t

Even if the F_GETPIPE_SZ constant is defined, the fcntl() call can
fail (e.g. with EINVAL), so fall back to the default in that case.

8 years agoImpose deterministic order on cpp-definition options.
Zefram [Wed, 18 Mar 2015 23:49:28 +0000 (19:49 -0400)]
Impose deterministic order on cpp-definition options.

Heretofore, ExtUtils::CBuilder put cpp-definition options into the cc command line in
non-deterministic order. This produced noise when diffing build logs.  Make
this order deterministic.

Add tests for ascii-betical order in t/04-base.t.  Increment $VERSION in three
packages.  Remove commented-out line.

For: RT #124106

8 years agoApply changes for CPAN-Meta-YAML v0.014.
David Golden [Tue, 17 Mar 2015 02:02:00 +0000 (22:02 -0400)]
Apply changes for CPAN-Meta-YAML v0.014.

Held to be applied to blead before perl-5.23.1.

One test failure was corrected: t/Porting/exec-bit.t.
set +x on this executable, as it is in the cpan distribution

Additional patch by Karen Etheridge.

8 years agoepigraphs: the v5.22.0 epigraph
Ricardo Signes [Mon, 1 Jun 2015 19:25:09 +0000 (15:25 -0400)]
epigraphs: the v5.22.0 epigraph

8 years agofeature: add the 5.23 bundle (same as 5.22)
Ricardo Signes [Mon, 1 Jun 2015 18:58:42 +0000 (14:58 -0400)]
feature: add the 5.23 bundle (same as 5.22)

8 years agodrop the perldeltas for 5.21.*
Ricardo Signes [Mon, 1 Jun 2015 18:43:46 +0000 (14:43 -0400)]
drop the perldeltas for 5.21.*

8 years agoUpdate M-CL Changes to reflect v5.22.0 release
Chris 'BinGOs' Williams [Mon, 1 Jun 2015 18:33:29 +0000 (19:33 +0100)]
Update M-CL Changes to reflect v5.22.0 release

8 years ago[PATCH] add changelog entries that were in perl52111delta for this release
Karen Etheridge [Mon, 1 Jun 2015 18:32:32 +0000 (19:32 +0100)]
[PATCH] add changelog entries that were in perl52111delta for this release

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
8 years agocorelist: add stubs for v5.23.0
Ricardo Signes [Mon, 1 Jun 2015 18:28:47 +0000 (14:28 -0400)]
corelist: add stubs for v5.23.0

8 years agoversion bump: make regen and make META.json
Ricardo Signes [Mon, 1 Jun 2015 18:26:47 +0000 (14:26 -0400)]
version bump: make regen and make META.json

8 years agoadd perldelta for 5.23.0
Ricardo Signes [Mon, 1 Jun 2015 18:23:04 +0000 (14:23 -0400)]
add perldelta for 5.23.0

8 years agobump version to v5.23.0
Ricardo Signes [Mon, 1 Jun 2015 18:16:27 +0000 (14:16 -0400)]
bump version to v5.23.0

8 years agoCoro is known broken on blead v5.22.0
Ricardo Signes [Mon, 1 Jun 2015 16:33:26 +0000 (12:33 -0400)]
Coro is known broken on blead

see http://nntp.perl.org/group/perl.perl5.porters/228257

8 years agoMETA.json: this is now a stable release
Ricardo Signes [Sat, 30 May 2015 15:50:01 +0000 (11:50 -0400)]
META.json: this is now a stable release

8 years agoremove the RC marker from patchlevel.h for v5.22.0!
Ricardo Signes [Sat, 30 May 2015 15:45:31 +0000 (11:45 -0400)]
remove the RC marker from patchlevel.h for v5.22.0!