This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
H.Merijn Brand [Sat, 26 Jul 2014 19:43:54 +0000 (21:43 +0200)]
Simplify cppsym dash problem
Karl Williamson [Fri, 25 Jul 2014 20:57:33 +0000 (14:57 -0600)]
utf8.c: Use slightly more efficient macro
Lowercasing a Latin-1 range character results in a latin-1 range
character, so we can use the more restrictive macros that is slightly
more efficient than the general ones. (This difference only is
applicable on EBCDIC platforms, as the macros all expand to nothing on
ASCII ones.
Karl Williamson [Fri, 25 Jul 2014 20:56:46 +0000 (14:56 -0600)]
perlop: Update to reflect 5.20 changes
Some deprecations have become fatal in v5.20
Karl Williamson [Fri, 25 Jul 2014 20:44:46 +0000 (14:44 -0600)]
perlop: Nits
Karl Williamson [Fri, 25 Jul 2014 17:31:26 +0000 (11:31 -0600)]
perlop: Update text to reflect code changes
The warning message is no longer misleading, so no need to point out
anything about it.
Andy Dougherty [Fri, 25 Jul 2014 17:55:32 +0000 (13:55 -0400)]
Only use setenv() on Solaris if it is available.
This is a followup to
07ad9e0e19891ec129e1a78e40a66ca19b51302d.
util.c:Perl_my_setenv() unconditionally used setenv() if #defined(__sun).
Solaris 8 had neither setenv() nor unsetenv(), so it failed. Configure
does not currently check for setenv(), but the check for unsetenv()
is sufficient here since Solaris 9 and later have both.
Brian Fraser [Fri, 25 Jul 2014 17:46:41 +0000 (19:46 +0200)]
Configure: Handle hyphens when searching cpp symbols
This is really just for Android, which in Configure is
known as linux-android; the hyphen is passes as-is to
the preprocessor, which handles it as a minus.
So don't do that.
Brian Fraser [Fri, 25 Jul 2014 17:13:26 +0000 (19:13 +0200)]
Configure: Discard errors when testing for less -R
When we try replacing 'less' with 'less -R', it's possible
that less will output errors if the option is not supported;
this happens, for example, in busybox's less.
Brian Fraser [Fri, 25 Jul 2014 16:34:03 +0000 (18:34 +0200)]
t/op/taint.t: Accommodate for systems without an inbuilt echo (android, blackberry)
Brian Fraser [Thu, 24 Jul 2014 13:54:30 +0000 (15:54 +0200)]
Makefile.SH: Add missing files for make test on cross builds
Brian Fraser [Thu, 24 Jul 2014 13:53:52 +0000 (15:53 +0200)]
Makefile.SH: Fix cross builds with -Uhostgenerate
Brian Fraser [Thu, 24 Jul 2014 13:53:17 +0000 (15:53 +0200)]
t/re/subst.t: Proper skip for systems without locale
Brian Fraser [Thu, 24 Jul 2014 13:51:35 +0000 (15:51 +0200)]
pp.c: Fixed a quotemeta bug on perls built without locale.
This was causing quotemeta("\N{U+D7}") to not be quoted, as well as
some other codepoints in the latin1 range.
Jarkko Hietaniemi [Fri, 25 Jul 2014 00:20:56 +0000 (20:20 -0400)]
Make PERL_GLOBAL_STRUCT_PRIVATE visible in -V.
Jarkko Hietaniemi [Thu, 24 Jul 2014 23:31:04 +0000 (19:31 -0400)]
Unused dVARs found by g++ -DPERL_GLOBAL_STRUCT_PRIVATE.
Jarkko Hietaniemi [Thu, 24 Jul 2014 02:32:45 +0000 (22:32 -0400)]
Share common constants as file statics.
Jarkko Hietaniemi [Wed, 23 Jul 2014 14:38:50 +0000 (10:38 -0400)]
Use UV instead of Size_t.
A strong reason for using UV are the promised custom codepoints,
they go beyond 32-bit.
The overflow logic didn't work if Size_t was 32-bit but the UV was 64-bit.
Steal the battle-proven logic from grok_number_flags().
The numeric.xs or grok.t were not right in 32-bit, either.
Add comments.
Rafael Garcia-Suarez [Thu, 24 Jul 2014 11:26:10 +0000 (13:26 +0200)]
Remove flagging OP_READLINE with OPf_SPECIAL
This was used to distinguish forms <FILE> from <$file>, but doesn't
seem to be used anymore by anything.
Jarkko Hietaniemi [Wed, 23 Jul 2014 14:01:08 +0000 (10:01 -0400)]
apidoc fixes, comment tweaks.
Tony Cook [Wed, 23 Jul 2014 07:11:42 +0000 (17:11 +1000)]
Vladimir Marek is now a perl author
Vladimir Marek [Wed, 23 Jul 2014 07:05:59 +0000 (17:05 +1000)]
use setenv() on Solaris
Tony Cook [Wed, 23 Jul 2014 04:21:42 +0000 (14:21 +1000)]
bump $XS::APItest::VERSION for the grok_atou() merge
Tony Cook [Wed, 23 Jul 2014 03:51:30 +0000 (13:51 +1000)]
Chad Granum is now a perl author
Chad Granum [Wed, 16 Jul 2014 06:10:37 +0000 (23:10 -0700)]
Fix ok() that should be a like()
Chad Granum [Wed, 16 Jul 2014 06:10:20 +0000 (23:10 -0700)]
Delay loading Test::More
Craig A. Berry [Wed, 23 Jul 2014 01:38:29 +0000 (20:38 -0500)]
Fix legacy VMS feature checking status.
Back in
8dc9d3390b257b I consolidated two routines that were
almost identical -- except for their return values. The routine
I kept returns the length of the equivalence name after logical
name translation, but some uses of it were checking it to see if
it was a successful VMS condition value. Which means an odd length
(such as from "1") was successful but an even length (such as from
"ENABLE", the value recommended in the documentation) failed. So
fix those uses to check for a non-zero from simple_trnlnm.
For most features this only affected pre-7.3 systems, i.e., VMS
releases more than thirteen years old. However, it also affected
features such as PERL_VMS_POSIX_EXIT that we have made up on our
own and are not tracking a CRTL feature.
Jarkko Hietaniemi [Tue, 22 Jul 2014 11:46:26 +0000 (07:46 -0400)]
Introduce maxend for paranoia. Also, comments.
Jarkko Hietaniemi [Tue, 22 Jul 2014 01:29:22 +0000 (21:29 -0400)]
Atol can be strtol in disguise, so grok_atou.
Jarkko Hietaniemi [Mon, 21 Jul 2014 19:16:33 +0000 (15:16 -0400)]
Add strtoul and strtol to avoidables.
Jarkko Hietaniemi [Mon, 21 Jul 2014 19:15:42 +0000 (15:15 -0400)]
Document grok_atou as strtoul replacement.
Jarkko Hietaniemi [Mon, 21 Jul 2014 18:59:58 +0000 (14:59 -0400)]
Use grok_atou instead of strtoul (no explicit strtol uses).
Jarkko Hietaniemi [Mon, 21 Jul 2014 14:56:49 +0000 (10:56 -0400)]
Advertise grok_atou.
Jarkko Hietaniemi [Mon, 21 Jul 2014 14:53:10 +0000 (10:53 -0400)]
Add atoi to avoidables.
Jarkko Hietaniemi [Mon, 21 Jul 2014 14:07:05 +0000 (10:07 -0400)]
Add tests for grok_atou.
Jarkko Hietaniemi [Mon, 21 Jul 2014 14:50:54 +0000 (10:50 -0400)]
Use grok_atou instead of atoi.
Remaining atoi() uses include at least:
ext/DynaLoader/dl_aix.xs, os2/os2.c, vms/vms.c
Jarkko Hietaniemi [Mon, 21 Jul 2014 14:41:20 +0000 (10:41 -0400)]
Implement grok_atou as safe/strict atoi replacement.
For earlier discussion, see:
http://www.nntp.perl.org/group/perl.perl5.porters/2013/10/msg208680.html
https://rt.perl.org/Public/Bug/Display.html?id=116118#txn-1250187
grok_atou is completely new code, instead of trying to bolt
new parameters/flags to grok_number. This makes it easier to
be extremely strict, and not worry about breaking grok_number.
Jan Dubois [Tue, 22 Jul 2014 23:50:24 +0000 (16:50 -0700)]
Use %I64d instead of %lld for MinGW
For older versions of MSVCRT.dll %lld is still using only 32 bits, breaking
32-bit builds defining USE_64_BIT_INT. %I64d is still supported on all newer
MSVCRT.dll releases, so there is really no reason to use %lld with MinGW at
all.
Fixes https://rt.perl.org/Ticket/Display.html?id=120851
Alberto Simões [Tue, 22 Jul 2014 23:44:25 +0000 (09:44 +1000)]
perlexperiment mentions features a lot, refer to the feature module
Jarkko Hietaniemi [Tue, 22 Jul 2014 21:22:57 +0000 (17:22 -0400)]
_LIB_VERSION scan was trying leading address twice.
Important with PERL_GLOBAL_STRUCT_PRIVATE.
Jarkko Hietaniemi [Tue, 22 Jul 2014 12:13:24 +0000 (08:13 -0400)]
Mention libperl.t, and explain nm output some more.
James E Keenan [Tue, 22 Jul 2014 01:02:53 +0000 (21:02 -0400)]
Move two variable assignments outside of parens.
Done for readability. Remove some unused variables. Move declaration of other
variable closer to where it is used. Rationalize indentation on lines
modified. Increment $VERSION.
For: RT #122282 (additional)
Daniel Dragan [Sun, 13 Jul 2014 12:41:15 +0000 (08:41 -0400)]
Open3.pm:spawn_with_handles remove alot of duplicate operators
dont call fileno twice, don't deref key "open_as" 3 extra times.
Jarkko Hietaniemi [Tue, 22 Jul 2014 01:12:09 +0000 (21:12 -0400)]
Avoid undefined warnings.
Jarkko Hietaniemi [Mon, 21 Jul 2014 17:29:27 +0000 (13:29 -0400)]
In FreeBSD memcmp symbol can disappear.
Karl Williamson [Mon, 21 Jul 2014 15:43:04 +0000 (09:43 -0600)]
sv.h: Document SVt_INVLIST fields
Karl Williamson [Tue, 8 Jul 2014 16:29:13 +0000 (10:29 -0600)]
utf8_heavy.pl: Fix nit in comment
David Mitchell [Mon, 21 Jul 2014 15:02:23 +0000 (16:02 +0100)]
cpan/Time-HiRes/t/itimer.t: better diagnostics
This test is failing some smokes. Add better diagnostics to see what's
going on.
Since this is a CPAN-first module, this commit either needs backing out at
some point, or merging upstream.
Dagfinn Ilmari Mannsåker [Sun, 8 Jun 2014 00:37:32 +0000 (01:37 +0100)]
Disallow importing functions from UNIVERSAL
It's been deprecated since v5.12.
Karl Williamson [Sun, 20 Jul 2014 16:38:25 +0000 (10:38 -0600)]
Regen podcheck db for new long verbatims in perlepigraph
Karl Williamson [Tue, 15 Jul 2014 22:05:12 +0000 (16:05 -0600)]
perlop: Grammatical nit.
'either' refers only to one of two possibilities. Since this
has more than that, 'either' is grammatically incorrect.
Abigail [Sun, 20 Jul 2014 15:25:04 +0000 (17:25 +0200)]
Upped version numbers for ModuleList
Abigail [Sun, 20 Jul 2014 15:12:05 +0000 (17:12 +0200)]
Bump version number from 5.21.2 to 5.21.3
Abigail [Sun, 20 Jul 2014 14:51:11 +0000 (16:51 +0200)]
New perldelta.
Abigail [Sun, 20 Jul 2014 12:43:59 +0000 (14:43 +0200)]
Installing Inline no longer installs Inline::C.
So, when testing cpan, install Inline::C.
Abigail [Sun, 20 Jul 2014 14:36:36 +0000 (16:36 +0200)]
Epigraph for 5.21.2
Abigail [Sun, 20 Jul 2014 14:16:38 +0000 (16:16 +0200)]
Merge branch 'release-5.21.2' into blead
Conflicts:
t/porting/libperl.t
Jarkko Hietaniemi [Sun, 20 Jul 2014 13:10:27 +0000 (09:10 -0400)]
Warn against tmpfile, and mention perlclib.
Jarkko Hietaniemi [Sun, 20 Jul 2014 12:00:59 +0000 (08:00 -0400)]
Skip symbols for which Configure found no support.
Jarkko Hietaniemi [Sun, 20 Jul 2014 11:33:12 +0000 (07:33 -0400)]
Comments for dlopen.
Jarkko Hietaniemi [Sun, 20 Jul 2014 11:30:17 +0000 (07:30 -0400)]
Expect sqrtl instead of sqrt if applicable.
Abigail [Sun, 20 Jul 2014 11:33:42 +0000 (13:33 +0200)]
Adjust
31e62fa1f35be3aceacc7fa62ce72d7131299a9a
It seems that 'sqrt' is not always called as a system call, in particular,
when compiling with -Dusemorebits
Abigail [Sun, 20 Jul 2014 02:08:08 +0000 (04:08 +0200)]
Add new release to perlhist
Abigail [Sun, 20 Jul 2014 01:50:54 +0000 (03:50 +0200)]
Acknowledgement section of perldelta
Abigail [Sun, 20 Jul 2014 01:42:20 +0000 (03:42 +0200)]
Listed updated modules.
Abigail [Sun, 20 Jul 2014 01:05:59 +0000 (03:05 +0200)]
Update Module::CoreList for 5.21.2
Abigail [Sat, 19 Jul 2014 22:50:34 +0000 (00:50 +0200)]
Revert "Update HTTP-Tiny to CPAN version 0.044"
This reverts commit
43bf4e6652b9fc743b1dbbc5153ced8b08779e84.
HTTP::Tiny contains tests that requires a connection to www.example.com.
These tests fail if run behind a firewall.
Jarkko Hietaniemi [Sat, 19 Jul 2014 14:03:15 +0000 (14:03 +0000)]
Add fgets+tmpfile to avoidables, and add comments.
Jarkko Hietaniemi [Sat, 19 Jul 2014 13:51:38 +0000 (13:51 +0000)]
Add freebsd support.
Jarkko Hietaniemi [Thu, 17 Jul 2014 10:23:21 +0000 (10:23 +0000)]
Parsing linux input in darwin, and vice versa.
Jarkko Hietaniemi [Wed, 16 Jul 2014 07:17:06 +0000 (07:17 +0000)]
Add comments.
Jarkko Hietaniemi [Sun, 13 Jul 2014 13:13:30 +0000 (16:13 +0300)]
Scan for expected and unwanted undef (libc) symbols.
We would expect to see e.g. chmod() being used,
but we do not want to see e.g. gets() being used, ever.
Jarkko Hietaniemi [Mon, 14 Jul 2014 21:31:19 +0000 (21:31 +0000)]
Sometimes Darwin has the string constants in cstring section.
At least in OS X 10.7.
Resolves the darwin x86 part of RT #12267 (the failing PL_no_mem test).
Jarkko Hietaniemi [Sun, 13 Jul 2014 12:44:33 +0000 (15:44 +0300)]
test.pl:eq_array() is enough.
No bad is_deeply() emulation necessary.
Jarkko Hietaniemi [Sun, 13 Jul 2014 06:00:58 +0000 (09:00 +0300)]
More debugging output.
Jarkko Hietaniemi [Sun, 13 Jul 2014 05:57:45 +0000 (08:57 +0300)]
Handle darwin ppc nm output, reenable test.
Not darwin ppc in particular: handle 32-bit nm output, in general.
Resolves part of RT #122267.
Jarkko Hietaniemi [Sun, 13 Jul 2014 05:49:50 +0000 (08:49 +0300)]
Allow reading nm output from a file (or STDIN).
Abigail [Sat, 19 Jul 2014 21:25:34 +0000 (23:25 +0200)]
Changes for 5.21.1 -> 5.21.2.
Not included the parts that are automated (module changes and acknowledgements).
Abigail [Sat, 19 Jul 2014 16:36:11 +0000 (18:36 +0200)]
Tick off the 5.20.0 and 5.20.1 releases.
Abigail [Sat, 19 Jul 2014 16:34:08 +0000 (18:34 +0200)]
"all question marks" is ambigious.
Because if just a single question mark is used, it means the release
manager is unknown. Only if multiple question marks are used it
means it isn't known whether this release will happen.
Steve Hay [Fri, 18 Jul 2014 14:59:34 +0000 (15:59 +0100)]
perlpolicy - Add encoding to fix podcheck.t following
0c6082f411
Ricardo Signes [Fri, 18 Jul 2014 13:03:52 +0000 (09:03 -0400)]
perlpolicy: update list of moderators
Steve Hay [Fri, 18 Jul 2014 07:48:32 +0000 (08:48 +0100)]
Note that ExtUtils::Manifest has been upgraded to 1.64
The EXCLUDED files are also now different.
Steve Hay [Fri, 18 Jul 2014 07:36:15 +0000 (08:36 +0100)]
perlpolicy - Note that minimal build fixes are acceptable for maint too
Changes like
31114fe991, which has just been cherry-picked into maint-5.20,
should be allowed.
H.Merijn Brand [Thu, 17 Jul 2014 12:45:47 +0000 (14:45 +0200)]
uconfig.h again
I am so sorry
H.Merijn Brand [Thu, 17 Jul 2014 12:31:43 +0000 (14:31 +0200)]
cut-n-paste error in comment for dladdr in config_h.SH for Condifure
Chris 'BinGOs' Williams [Thu, 17 Jul 2014 10:24:32 +0000 (11:24 +0100)]
Update HTTP-Tiny to CPAN version 0.044
[DELTA]
0.044 2014-07-16 23:46:09-04:00 America/New_York
[CHANGED]
- Providing a custom 'Host' header is now a fatal exception. Previously, it
was silently ignored, as the RFC mandates that Host be set from the
URL, but ignoring it could lead to unexpected, confusing errors.
- optimized URL splitting
- Passing 'undef' for any proxy attribute will prevent HTTP::Tiny from
setting the proxy from the environment.
James E Keenan [Tue, 15 Jul 2014 22:54:47 +0000 (18:54 -0400)]
Merge branch '122300-extutils-manifest' into blead
Karen Etheridge [Tue, 15 Jul 2014 00:25:46 +0000 (17:25 -0700)]
use just the import sub from Exporter
James E Keenan [Tue, 15 Jul 2014 22:36:29 +0000 (18:36 -0400)]
Need to increment $VERSION in ExtUtils::Manifest.
Karen Etheridge [Tue, 15 Jul 2014 00:19:36 +0000 (17:19 -0700)]
use warnings; convert "use vars" to "our"
Karen Etheridge [Mon, 30 Jan 2012 21:04:43 +0000 (13:04 -0800)]
add vim swap files to the ignored list for MANIFEST.SKIP.
brian d foy [Tue, 6 Dec 2011 09:42:43 +0000 (03:42 -0600)]
RT 72933: Ignore files from prove
H.Merijn Brand [Tue, 15 Jul 2014 14:17:48 +0000 (16:17 +0200)]
This should be automated!
H.Merijn Brand [Tue, 15 Jul 2014 14:05:53 +0000 (16:05 +0200)]
Regen Configure after backports
Alexandr Ciornii [Sun, 16 Mar 2014 12:12:42 +0000 (14:12 +0200)]
File::Copy does not overwrite read-only files
Daniel Dragan [Sun, 13 Jul 2014 10:48:25 +0000 (06:48 -0400)]
refactor pp_ref
similar to commmit
b3cf48215c
-removed:
-4/-8 pop on SP
+4/+8 push on SP
PUTBACK
1 non vol register save/restore (TARG not saved across the sv_ref())
TARG is not computed if the SV isn't a reference, so the PL_sv_no branch is
slightly faster. On VC 2003 32 bit miniperl, this func dropped from 0x6D to
0x58 bytes of machine code.
Daniel Dragan [Mon, 14 Jul 2014 05:10:52 +0000 (15:10 +1000)]
optimize PathTools to not try to load XS on miniperl
this will slightly speed up perl's build time by not loading XSLoader.pm
and DynaLoader.pm into the process, and then die()+eval trap when trying
to load the XS module.
Tony: update perldelta message to avoid a broken link
James E Keenan [Sun, 13 Jul 2014 02:16:23 +0000 (22:16 -0400)]
skip_all on darwin until nm peculiarities can be straighted out.
For: RT #122267
Karl Williamson [Fri, 11 Jul 2014 22:33:26 +0000 (16:33 -0600)]
locale.c: Improve some comments
Karl Williamson [Fri, 11 Jul 2014 22:29:54 +0000 (16:29 -0600)]
locale.c: Fix some unused code for potential future use
This code extends the heuristics used to determine if a locale is UTF-8
or not on older platforms. It has been #ifdef'd out because it only
added a little value on dromedary. Now the previous commit has added
new heuristics, and tests on dromedary show that this adds nothing to
that. But I'm leaving it in the source in case it might ever prove
useful. In order to test it, I compiled it and found some problems with
the earlier version that this now fixes.