This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Karl Williamson [Sat, 31 Jul 2010 19:49:27 +0000 (13:49 -0600)]
regexp.h: Fix error check to use correct offset
Karl Williamson [Mon, 9 Aug 2010 17:35:51 +0000 (11:35 -0600)]
perlrecharclass: Document subtlety in Unicode
The documentation had failed to mention that a regex pattern in utf8
encoding forces a Unicode interpretation on a non-utf8 string.
Karl Williamson [Mon, 9 Aug 2010 17:34:12 +0000 (11:34 -0600)]
perlrecharclass: Fix typo
Karl Williamson [Mon, 9 Aug 2010 17:33:09 +0000 (11:33 -0600)]
perlglossary: Add defn for "code point"
Karl Williamson [Mon, 9 Aug 2010 15:29:11 +0000 (09:29 -0600)]
perlunifaq: Note: \d, \D do not have Unicode bug
Karl Williamson [Mon, 9 Aug 2010 14:41:29 +0000 (08:41 -0600)]
perlunicode.pod: Elaborate unicode bug for POSIX
Mention the POSIX character classes as being affected by the Unicode
bug.
Rafael Garcia-Suarez [Wed, 11 Aug 2010 08:12:09 +0000 (10:12 +0200)]
Revert "perlunicode.pod: Elaborate unicode bug for POSIX"
This reverts commit
d67647f5f40a7e78bffc92ff8600c67f95d3d7b0.
Karl Williamson [Mon, 9 Aug 2010 14:41:29 +0000 (08:41 -0600)]
perlunicode.pod: Elaborate unicode bug for POSIX
Mention the POSIX character classes as being affected by the Unicode
bug.
Karl Williamson [Mon, 9 Aug 2010 14:26:14 +0000 (08:26 -0600)]
feature.pm: Note unicode_strings is not complete
Karl Williamson [Sun, 1 Aug 2010 18:50:38 +0000 (12:50 -0600)]
perlrepository.pod: Elaborate -a, -m
Chris 'BinGOs' Williams [Mon, 9 Aug 2010 13:50:39 +0000 (14:50 +0100)]
Update Unicode-Collate to CPAN version 0.56
[DELTA]
0.56 Sun Aug 8 20:24:03 2010
- Unicode::Collate::Locale newly supports locales: eo, nb, ro, sv.
! renamed t/locale_{xy}.t to t/loc_{xy}.t (for safer 8.3 names)
Jan Dubois [Sat, 7 Aug 2010 00:08:38 +0000 (17:08 -0700)]
Define _USE_32BIT_TIME_T for VC6 and VC7
In VS 2005 (VC++ 8.0) Microsoft changes time_t from 32-bit to
64-bit, even in 32-bit mode. It also provides the _USE_32BIT_TIME_T
preprocessor option to revert back to the old functionality for
backward compatibility. We define this symbol here for older 32-bit
compilers only (which aren't using it at all) for the sole purpose
of getting it into $Config{ccflags}. That way if someone builds
Perl itself with e.g. VC6 but later installs an XS module using VC8
the time_t types will still be compatible.
Jan Dubois [Fri, 6 Aug 2010 23:44:50 +0000 (16:44 -0700)]
Don't mention Activeware Perl versions
All Win32::* modules on CPAN now build with standard toolchain
commands; there is no need for "porting" or special build instructions
anymore.
Jan Dubois [Fri, 6 Aug 2010 23:41:55 +0000 (16:41 -0700)]
Drop references to obsolete MinGW 1.x (gcc 2.95)
There are know issues with that compiler versions, and the necessary
fixes are no longer readily available, so stop claiming this is still
a supported compiler. Just require gcc 3.2.x or later everywhere for
MinGW support.
Jan Dubois [Fri, 6 Aug 2010 23:26:48 +0000 (16:26 -0700)]
Platform name is Windows, not Win32
Remove reference to old compilers and also use the current
name "Windows SDK" instead of the older "Platform SDK" in most
places. There is sill lots of chance for further improvements!
Leon Brocard [Tue, 3 Aug 2010 14:39:57 +0000 (16:39 +0200)]
Podtidy perlrepository.pod
H.Merijn Brand [Mon, 2 Aug 2010 15:17:24 +0000 (17:17 +0200)]
C89 doesn't allow static dynamic initialization of complete structs
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Chris 'BinGOs' Williams [Mon, 2 Aug 2010 13:56:01 +0000 (14:56 +0100)]
Updated Unic0de-Collate to CPAN version 0.55
[DELTA]
0.55 Sun Aug 1 21:21:23 2010
- incorporated Unicode::Collate::Locale with some changes.
(see http://www.xray.mpe.mpg.de/mailing-lists/perl-unicode/2004-03/msg00030.html)
! added t/locale*.t that uses DUCET.
0.54 Sun Jul 25 21:37:04 2010
- Now UCA Revision 20 (based on Unicode 5.2.0).
- DUCET is also updated (for Unicode 5.2.0) as Collate/allkeys.txt,
which *is required* to test this module.
! Please notice that allkeys.txt will be overwritten if you have had
other allkeys.txt already.
- U+9FC4..U+9FCB and U+2A700..U+2B734 are new CJK Unified Ideographs.
- Many hangul jamo are assigned (affecting hangul_terminator).
! DUCET will be compiled when XS is used. Explicit saying
<table => 'allkeys.txt'> (or using another table) will prevent
this module using the compiled DUCET.
! added t/default.t that uses DUCET.
Craig A. Berry [Mon, 2 Aug 2010 03:12:38 +0000 (22:12 -0500)]
Close the tempfile in caller.t
Otherwise it will be locked when trying to run it on VMS.
David Cantrell [Mon, 2 Aug 2010 07:43:27 +0000 (09:43 +0200)]
Add tests for Tie::ExtraHash
David Cantrell [Mon, 2 Aug 2010 07:35:38 +0000 (09:35 +0200)]
Fix file name in comment
Karl Williamson [Sun, 1 Aug 2010 19:01:08 +0000 (13:01 -0600)]
perlhack: Note existence of t/lib/warnings
I didn't know about it, and thus went to unnecessarily effort until this
was kindly pointed out to me.
Karl Williamson [Sun, 1 Aug 2010 18:29:54 +0000 (12:29 -0600)]
handy.h: Note Devel::PPPort has duplicated macros
If a bug is found in the handy.h macros, it may be necessary to fix the
duplicates in the cpan module. This may require filing a bug report
there.
David Mitchell [Sun, 1 Aug 2010 20:39:39 +0000 (21:39 +0100)]
clarify when HV backref is in magic
Fix up the comments in and above some functions to clarify that backref
bagic for hVs may sometimes be moved back to HvAUX.
David Mitchell [Sun, 1 Aug 2010 20:30:33 +0000 (21:30 +0100)]
stop after first del_backref
When deleting a backreference, there should be only one matching entry.
For normal builds sop after the first one; under DEBUGGING, look for more,
then assert only one found.
The previous behaviour was to unconditionally scan the whole array and
not assert that anything was found.
David Mitchell [Sun, 1 Aug 2010 14:18:51 +0000 (15:18 +0100)]
optimise single backreferences
Rather than creating an AV and pushing the backref onto it,
store a single backref directly in the mg_obj or xhv_backreferences
slot.
If the backref is an AV, then we skip this optimisation (although I don't
think at the moment, that an AV would ever be pointed to by some backref
magic). So the test of whether the optimisation is is in effect is whether
the thing in the slot is an AV or not.
David Mitchell [Thu, 29 Jul 2010 22:05:17 +0000 (23:05 +0100)]
refactor Perl_sv_add_backref
No functional changes, but concentrate the assigning of a new AV in a
single place, to make the next commit easier
David Mitchell [Sun, 1 Aug 2010 12:20:15 +0000 (13:20 +0100)]
DEBUG_LEAKING_SCALARS: add sv_debug_parent
Rather than just recording whether an SV was cloned (sv->sv_debug_cloned),
record the address of the SV we were cloned from.
George Greer [Sun, 1 Aug 2010 04:30:22 +0000 (00:30 -0400)]
Change spaces to tabs for t/op/tie_fetch_count.t in MANIFEST
Florian Ragwitz [Sat, 31 Jul 2010 23:07:01 +0000 (01:07 +0200)]
Add t/op/tie_fetch_count.t to MANIFEST
David Golden [Sat, 31 Jul 2010 03:48:37 +0000 (23:48 -0400)]
More release manager updates from 5.13.3 release notes
David Golden [Fri, 30 Jul 2010 23:50:33 +0000 (19:50 -0400)]
revert epigraphs.pod note in release manager's guide
David Golden [Fri, 30 Jul 2010 22:00:10 +0000 (22:00 +0000)]
Update release managers guide with notes from 5.13.3 release
David Golden [Fri, 30 Jul 2010 21:57:20 +0000 (21:57 +0000)]
Improve Porting/checkAUTHORS.pl
Rationalized options and usage message. The new "--who" option
now gives full names as provided in the AUTHORS file.
Updated t/porting/authors.t for the new option syntax.
David Golden [Fri, 30 Jul 2010 20:52:28 +0000 (20:52 +0000)]
checkAUTHORS.pl: add --who to list unique authors
This will help in generating the Acknowledgements
section of perldelta using the known authors map.
Rafael Garcia-Suarez [Fri, 30 Jul 2010 12:22:33 +0000 (14:22 +0200)]
Make new tie test less noisy
Karl Williamson [Thu, 29 Jul 2010 17:52:52 +0000 (11:52 -0600)]
Add new hdr op_reg_common to Makefile.SH
I believe this is required for dependencies to be calculated properly
Abigail [Fri, 30 Jul 2010 00:21:52 +0000 (02:21 +0200)]
Tests to check if FETCH of a tied variable isn't called more
than once. See also Bug 76814.
David Mitchell [Thu, 29 Jul 2010 18:37:16 +0000 (19:37 +0100)]
Peek.t: better identify failing tests
David Mitchell [Thu, 29 Jul 2010 18:11:32 +0000 (19:11 +0100)]
Dump didn't display CVf_ISXSUB flag
David Mitchell [Thu, 29 Jul 2010 18:06:02 +0000 (19:06 +0100)]
Perl_do_sv_dump didn't increase nesting for magic
David Mitchell [Thu, 29 Jul 2010 17:57:11 +0000 (18:57 +0100)]
Perl_do_sv_dump: alert when skipping elements
When dumping an HV, we skip dumping the elements if the iterator is
already in use. Explain this in the dump output so people like me aren't
left wondering why the elements have vanished.
David Mitchell [Thu, 29 Jul 2010 16:56:24 +0000 (17:56 +0100)]
expand the xhv_backreferences code notes
(so that I don't get so confused when I revisit this code in 5 years time)
David Mitchell [Thu, 29 Jul 2010 12:55:39 +0000 (13:55 +0100)]
re-apply some xhv_backreferences notes and stuff
re-apply some of the small doc fixes and a couple of minor code tweaks that
were part of the reverted commit
044d8c24fa9214cf0fe9c6fc8a44e03f3f5374d7,
but which didn't need reverting
David Mitchell [Thu, 29 Jul 2010 12:33:19 +0000 (13:33 +0100)]
Revert "process xhv_backreferences early in S_hfreeentries"
This reverts commit
044d8c24fa9214cf0fe9c6fc8a44e03f3f5374d7.
Conflicts:
hv.c
That commit tried to simply the xhv_backreferences processing, but
was totally wrong and broke ordinary weak refs to hashes (see #76716).
David Mitchell [Thu, 29 Jul 2010 12:23:22 +0000 (13:23 +0100)]
Revert "make it an error to look for magic hv backref"
This reverts commit
64345bb5cdba725a5e2af06c99aa36d8a1b8b873.
Father Chrysostomos (via RT) [Sun, 25 Jul 2010 19:46:06 +0000 (12:46 -0700)]
Hash assignment can zap weak references to the hash
[perl #76716]
commits
044d8c24f and 64345bb broke backrefs to hashes that are merely
cleared or undeffed, but not freed. Spotted by Father Chrysostomos.
Test for it here (fixes coming next)
Karl Williamson [Tue, 20 Jul 2010 04:26:43 +0000 (22:26 -0600)]
Refactor common parts of op.h, regexp.h into new .h
op.h and regexp.h share common elements in their data structures. They
have had to manually be kept in sync. This patch makes it easier by
putting those common parts into a common header #included by the two.
To do this, it seemed easiest to change the symbol definitions to use
left shifts to generate the flag bits. But this meant that regcomp.pl
and axt/B/defsubs_h.PL had to be taught to recognize those forms of
expressions, done in separate commits
Karl Williamson [Tue, 20 Jul 2010 03:51:32 +0000 (21:51 -0600)]
ext/B/defsubs_h.PL: teach to allow exprs with <<
Allow #defines which have left shift operators in them.
Karl Williamson [Tue, 20 Jul 2010 03:46:49 +0000 (21:46 -0600)]
regcomp.pl: Teach to handle wider range of exprs
In particular teach it to handle definitions using <<, e.g.
#define SYMBOL (1<<3)
and to remember previous symbol definitons in the file so that symbol
can be used in later definitions.
Karl Williamson [Mon, 19 Jul 2010 23:18:03 +0000 (17:18 -0600)]
ext/B/defsubs_h.PL: add explanatory comment
Karl Williamson [Mon, 19 Jul 2010 23:15:51 +0000 (17:15 -0600)]
defsubs_h.PL: Use correct variable in error msg
Karl Williamson [Mon, 19 Jul 2010 19:06:19 +0000 (13:06 -0600)]
regexp.h: Add some comments
Karl Williamson [Mon, 19 Jul 2010 18:22:16 +0000 (12:22 -0600)]
op.h: Fix comments in #defines that cross lines
It is not good form to have comments in a #define continue onto the next
line, especially not with a \ ending each continuation line. People
preferred that the comment be placed before the #define
Nicholas Clark [Wed, 28 Jul 2010 10:01:51 +0000 (11:01 +0100)]
Make srand() return "0 but true" for 0, for backwards compatible behaviour.
Rafael Garcia-Suarez [Wed, 28 Jul 2010 08:25:47 +0000 (10:25 +0200)]
Add a test for srand's return value
Karl Williamson [Tue, 27 Jul 2010 14:18:25 +0000 (08:18 -0600)]
srand: change to return its seed
This commit changes srand to to return the seed instead of always
returning 1. The motivation behind this is to allow applications to not
have to come up with their own pseudo-random generator if they want
repeatable results.
The previous return behavior has never been documented. Note that it is
possible, but very unlikely, for the seed to end up being 0, which means
that if someone were relying on the undocumented previous behavior of
srand returning true, that in very rare instances it would return 0,
failing, and the next time they ran it, it would succeed, possibly
leading to puzzlement and very rare unexplained failures.
Chip Salzenberg [Wed, 28 Jul 2010 06:42:49 +0000 (23:42 -0700)]
remove misleading comment about CXINC; it's fine
Chip Salzenberg [Wed, 28 Jul 2010 06:40:56 +0000 (23:40 -0700)]
Revert "Fix off-by-one: avoid allocating an extra context"
This reverts commit
395b8e2d02eadc9b0639534410c39c530bc8a33d.
The fencepost error is coming from inside the programmer!
Chip Salzenberg [Wed, 28 Jul 2010 03:45:41 +0000 (20:45 -0700)]
Fix off-by-one: avoid allocating an extra context
(patch req by Nicholas)
Florian Ragwitz [Tue, 27 Jul 2010 12:05:42 +0000 (14:05 +0200)]
Bump $ExtUtils::ParseXS::VERSION to non-dev version
It's upstream => blead now.
Florian Ragwitz [Tue, 27 Jul 2010 12:02:15 +0000 (14:02 +0200)]
Move ExtUtils::ParseXS from cpan/ to dist/
Both Ken and David agree with this.
Rafael Garcia-Suarez [Tue, 27 Jul 2010 08:42:29 +0000 (10:42 +0200)]
Document in perldelta Karl's work I just merged
The original branch was putting this paragraph in perl5133delta.pod.
Rafael Garcia-Suarez [Tue, 27 Jul 2010 08:31:34 +0000 (10:31 +0200)]
Merge remote branch 'khwilliamson/ncharnames' into blead
Conflicts:
pod/perl5133delta.pod
Karl Williamson [Sun, 25 Jul 2010 19:13:10 +0000 (13:13 -0600)]
Change function signature of grok_bslash_o
The previous return value where NULL meant OK is outside-the-norm.
Karl Williamson [Sun, 25 Jul 2010 17:48:05 +0000 (11:48 -0600)]
Correct pod in numeric.c
Karl Williamson [Sun, 25 Jul 2010 17:46:45 +0000 (11:46 -0600)]
Correct comment in toke.c
Karl Williamson [Sun, 25 Jul 2010 17:18:39 +0000 (11:18 -0600)]
embed.fnc: correct comments
Karl Williamson [Sun, 25 Jul 2010 17:15:56 +0000 (11:15 -0600)]
Mark grok_bslash functions as intfce changeable
George Greer [Tue, 27 Jul 2010 03:11:42 +0000 (23:11 -0400)]
Keep test output pretty by actually using skip_all()'s message...
George Greer [Tue, 27 Jul 2010 03:02:40 +0000 (23:02 -0400)]
MSWin32's "-x" checks file extension, so it isn't useful for exec-bit.t
George Greer [Tue, 27 Jul 2010 02:56:44 +0000 (22:56 -0400)]
Add filename with spurious +x bit to diag in t/porting/exec-bit.t
This is for the benefit of smoke logs where the "not ok" aren't
shown but the diag() output is.
Florian Ragwitz [Mon, 26 Jul 2010 20:42:37 +0000 (22:42 +0200)]
Bump $ExtUtils::ParseXS::VERSION
Florian Ragwitz [Mon, 26 Jul 2010 17:20:47 +0000 (19:20 +0200)]
Move B::Lint from cpan/ to dist/
Josh confirmed that blead should be upstream.
Florian Ragwitz [Mon, 26 Jul 2010 15:43:02 +0000 (17:43 +0200)]
Nicholas Clark [Mon, 26 Jul 2010 14:35:43 +0000 (15:35 +0100)]
Resort MANIFEST.
Lubomir Rintel [Mon, 26 Jul 2010 14:05:05 +0000 (16:05 +0200)]
Restore errno if signal handler changes it
It's way too easy to forget to "local $!" in signal handlers and
changing $! when signal hits between two ops is probably never useful.
Florian Ragwitz [Tue, 20 Jul 2010 20:58:24 +0000 (22:58 +0200)]
Check API compatibility when loading xs modules
This adds PL_apiversion, allowing the API version of a running interpreter to be
introspected. It is used in the new XS_APIVERSION_BOOTCHECK macro, which is
added to the _boot function of every XS module, to compare it against the API
version the module has been compiled against. If the versions do not match, an
exception is thrown.
This doesn't fully prevent binary incompatible extensions to be loaded. It
merely compares PERL_API_* between compile- and runtime, and does not attempt to
solve the problem of identifying binary incompatible perls with the same API
version (i.e. the same perl version configured with and without DEBUGGING).
Florian Ragwitz [Mon, 26 Jul 2010 13:47:43 +0000 (15:47 +0200)]
Update AUTHORS
Florian Ragwitz [Mon, 26 Jul 2010 13:02:03 +0000 (15:02 +0200)]
More perldelta
Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 [Wed, 21 Jul 2010 08:53:50 +0000 (10:53 +0200)]
clarify how to enable -DPERL_USE_SAFE_PUTENV
Ævar Arnfjörð Bjarmason) (via RT [Sun, 25 Jul 2010 13:13:11 +0000 (06:13 -0700)]
perlhack: Add -Dusedevel to gcov Configure line
# New Ticket Created by (Ævar Arnfjörð Bjarmason)
# Please include the string: [perl #76710]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76710 >
Building blead doesn't work without -Dusedevel most of the time.
Ævar Arnfjörð Bjarmason) (via RT [Sun, 25 Jul 2010 13:13:13 +0000 (06:13 -0700)]
gitignore: Ignore gcov files
# New Ticket Created by (Ævar Arnfjörð Bjarmason)
# Please include the string: [perl #76712]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76712 >
Ignore the gcov files that are generated when following "GCC gcov
Profiling" in perlhack.
Chris 'BinGOs' Williams [Mon, 26 Jul 2010 09:59:37 +0000 (10:59 +0100)]
Updated Archive-Tar to CPAN version 1.66
[DELTA]
* important changes in version 1.66 26/07/2010
- Applied a patch from Alexandr Ciornii [RT#59699] to Makefile.PL which produces better META.yml
- Apply a patch from Alexandr Ciornii to ptar [RT#59700]:
Adds option -C to allow archives created with ptar to be uploaded to
PAUSE in case of Windows or world +w permissions on unix.
Florian Ragwitz [Mon, 26 Jul 2010 09:36:32 +0000 (11:36 +0200)]
Add ext/XS-APItest/t/peep.t to MANIFEST
George Greer [Sun, 4 Jul 2010 23:15:06 +0000 (19:15 -0400)]
RT#75762: In CURLYX->CURLYM optimization, check before removing parentheses.
Father Chrysostomos [Mon, 26 Jul 2010 08:52:48 +0000 (10:52 +0200)]
[perl #75656] lvalue subs don't copy on write
The attached patch teaches pp_leavesublv about kine.
For the record, a binary search points its digit at:
From: Nicholas Clark <nick@ccl4.org>
Date: Mon, 6 Jun 2005 09:08:45 +0000 (+0000)
Subject: Shared hash key scalars can be safely copied as shared hash key scalars
Shared hash key scalars can be safely copied as shared hash key scalars all the time.
Father Chrysostomos [Sat, 10 Jul 2010 19:09:51 +0000 (15:09 -0400)]
Fix for RT#1804: Anonymous glob breaks when assigned through
The problem here is that globs are scalars and the = operator can only
distinguish between scalar and glob assignments by the flags on the
glob. It only sees the return value of *{}, not the *{} itself. We can
fix this by having the pp_sassign look for a rv2gv (*{}) on its LHS,
to decide what type of assignment to do.
James Mastros [Thu, 8 Jul 2010 21:07:48 +0000 (22:07 +0100)]
Make the success and failure messages of t/porting/diag.t more clear, and add comments
James Mastros [Thu, 8 Jul 2010 20:41:27 +0000 (21:41 +0100)]
Remove "at - line 3" from the end of a perldiag entry.
James Mastros [Wed, 2 Jun 2010 17:32:19 +0000 (18:32 +0100)]
Document "Ambiguous use of -%s resolved as -&%s()"
James Mastros [Wed, 2 Jun 2010 17:27:48 +0000 (18:27 +0100)]
Document "Ambiguous use of %c{%s%s} resolved to %c%s%s"
James Mastros [Wed, 2 Jun 2010 16:44:45 +0000 (17:44 +0100)]
Document "Ambiguous use of %c{%s} resolved to %c%s"
James Mastros [Wed, 2 Jun 2010 16:35:22 +0000 (17:35 +0100)]
Document "Ambiguous use of %c resolved as operator %c"
James Mastros [Wed, 2 Jun 2010 16:22:59 +0000 (17:22 +0100)]
Stick a comment in t/porting/diag.t begging people not to abuse the ignore list
James Mastros [Wed, 2 Jun 2010 16:22:36 +0000 (17:22 +0100)]
Normalize formatting of "Ambiguous call resolved as CORE::%s(), qualify as such or use &" in toke.c, so t/porting/diag.t can find it.
Karl Williamson [Mon, 26 Jul 2010 07:59:02 +0000 (09:59 +0200)]
perlop.pod: Reword escapes that have ordinals
Karl Williamson [Sat, 24 Jul 2010 16:46:45 +0000 (10:46 -0600)]
warnings.pl: Silence perl compiler warnings
warnings.pl was trying to read two beyond the end of an array.
Gerard Goossen [Thu, 19 Nov 2009 10:21:52 +0000 (11:21 +0100)]
add print.t with testing of implicit printing of $_
Reini Urban [Sat, 24 Jul 2010 13:26:52 +0000 (15:26 +0200)]
Add more advantages of a perl.def file.