platform/upstream/perl.git
12 years agoregcomp.c: Use compiled-in inversion lists
Karl Williamson [Sun, 5 Feb 2012 00:08:58 +0000 (17:08 -0700)]
regcomp.c: Use compiled-in inversion lists

This uses the compiled inversion lists to generate Posix character
classes and things like \v, \s inside bracketed character classes.

This paves the way for future optimizations, and fixes the bug which has
no formal bug number that /[[:ascii:]]/i matched non-Ascii characters,
such as the Kelvin sign, unlike /\p{ascii}/i.

12 years agoAdd compile-time inversion lists for POSIX classes
Karl Williamson [Sat, 4 Feb 2012 18:42:58 +0000 (11:42 -0700)]
Add compile-time inversion lists for POSIX classes

These will be used in regcomp.c to replace the existing bit-wise
handling of these, enabling subsequent optimizations.

These are compiled-in, and hence affect the memory footprint of every
program, including those that don't use Unicode.  The lists that aren't
tiny are therefore currently restricted to only the Latin1 range;
anything needed beyond that will have to be read in at execution time,
just as before.

The design allows for easy conversion from Latin1 to use the full
Unicode range, should it be deemed desirable for some or all of these.

12 years agoregcomp.c: Use compile-time invlists
Karl Williamson [Sat, 4 Feb 2012 05:01:03 +0000 (22:01 -0700)]
regcomp.c: Use compile-time invlists

This creates three simple compile-time inversion lists from the data
that has been generated in a previous commit, and uses two of them.
Three PL_ variables are used to store them.

12 years agoAdd regen/mk_invlists.pl, charclass_invlists.h
Karl Williamson [Sat, 7 Jan 2012 19:10:41 +0000 (12:10 -0700)]
Add regen/mk_invlists.pl, charclass_invlists.h

This will be used to generate compile-time inversion lists in a C hdr
file that can be included in programs for initialization speed

Three simple inversion lists are included in this initial commit

12 years agoregcomp.c: Add ability to have compiled-in inversion lists
Karl Williamson [Sat, 7 Jan 2012 19:34:02 +0000 (12:34 -0700)]
regcomp.c: Add ability to have compiled-in inversion lists

This adds a routine that will take a C array and quickly create an
inversion list that points to that array.  Thus the array had better be
exactly the internal form that is required for an inversion list.  To
make sure that this doesn't get out of sync, a new field in the list's
header is created that is a combination of
version-number/inversion-list-type.

12 years agohandy.h: Add comment
Karl Williamson [Mon, 9 Jan 2012 19:12:00 +0000 (12:12 -0700)]
handy.h: Add comment

12 years agot/re/re_tests: Add Todo test
Karl Williamson [Fri, 3 Feb 2012 21:51:49 +0000 (14:51 -0700)]
t/re/re_tests: Add Todo test

This bug was spotted by Tom Christiansen, but no bug report has been
written.  /[[:ascii:]]/i should match the same set of code points as
/\p{ASCII}/i.  But it is matching things outside the ASCII range

12 years agoregcomp.c: Use new complement union
Karl Williamson [Fri, 3 Feb 2012 22:08:10 +0000 (15:08 -0700)]
regcomp.c: Use new complement union

Previous commits have changed the API of invlist_union so the first
parameter can be NULL, and are to take the complement of the 2nd.  We
can take advantage of that to simplify this code.

12 years agoregcomp.c: Add ability to take union of a complement
Karl Williamson [Fri, 3 Feb 2012 18:40:34 +0000 (11:40 -0700)]
regcomp.c: Add ability to take union of a complement

Previous commits have added the ability to the inversion list
intersection routine to take the complement of one of its inputs.
Likewise, for unions, this will be a frequent paradigm, and it is
cheaper to do the complement of an input in the routine than to
construct a new temporary that is the desired complement, and throw it
away.

12 years agoregcomp.c: _invlist_subtract() becomes a macro
Karl Williamson [Fri, 3 Feb 2012 17:57:33 +0000 (10:57 -0700)]
regcomp.c: _invlist_subtract() becomes a macro

This function is no longer necessary, as it is just a call to the newly
created _invlist_intersection_maybe_complement_2nd() with the correct
parameters.

12 years agoregcomp.c: Add ability to take intersection of complement
Karl Williamson [Fri, 3 Feb 2012 17:32:15 +0000 (10:32 -0700)]
regcomp.c: Add ability to take intersection of complement

It turns out that it is a common paradigm to want to take the
intersection of an inversion list with the complement of another
inversion list.  In fact, this is the how to subtract the second
inversion list from the first, as what remains in the first after the
subtraction is everything in it that is not in the second.

It also turns out that it adds very few cycles to an intersection to
complement one (or both, should we choose to) of the operands.  By
adding this capability, we don't have to create a copy of the inverted
operand beforehand, just to throw it away.

12 years agoregcomp.c: Use NULL first parameter to _invlist_union
Karl Williamson [Fri, 3 Feb 2012 21:55:45 +0000 (14:55 -0700)]
regcomp.c: Use NULL first parameter to _invlist_union

A previous commit has changed _invlist_union() to accept a NULL
first parameter.  This takes advantage of that to simplify some code.

12 years agoregcomp.c: Chg invlist_union() to accept NULL first param
Karl Williamson [Thu, 12 Jan 2012 18:09:39 +0000 (11:09 -0700)]
regcomp.c: Chg invlist_union() to accept NULL first param

It is common in a loop to keep adding inversion lists to a current
running total.  But the first time through, the current union list needs
to be initialized from NULL.  This puts that code in the function
instead of the callers each having to do it.

12 years agoAdd new email address for Reini Urban
Reini Urban [Thu, 9 Feb 2012 06:44:56 +0000 (07:44 +0100)]
Add new email address for Reini Urban

12 years agoSilence compiler warnings
Robin Barker [Thu, 9 Feb 2012 06:42:15 +0000 (07:42 +0100)]
Silence compiler warnings

Cf. RT #110208.
- Remove missing unused variables: op.c, regcomp.c
- Silence -Wformat type error: sv.c
- Cast first part of (,) expression as (void): gv.c

12 years agoREADME.cygwin now has fewer pod issues, update known_pod_issues.dat
Tony Cook [Thu, 9 Feb 2012 01:54:43 +0000 (12:54 +1100)]
README.cygwin now has fewer pod issues, update known_pod_issues.dat

12 years agoadd Cygwin::sync_winenv [perl #110190]
Reini Urban [Wed, 8 Feb 2012 23:58:21 +0000 (17:58 -0600)]
add Cygwin::sync_winenv [perl #110190]

Cygwin::sync_winenv should fix [CPAN #65052], ADODB missing
%COMMONPROGRAMFILES%.
sync_winenv code and solution by Chris Day.

12 years agoRevise perlcygwin.pod for cygwin-1.7
Reini Urban [Wed, 8 Feb 2012 23:51:39 +0000 (17:51 -0600)]
Revise perlcygwin.pod for cygwin-1.7

cygwin does not support windows prior NT5 anymore.
cygwin paths are now all UTF8 encoded, special pathname
characters and names are now allowed.
Removed outdated cruft and fix wrong parts.

12 years agoUpdate Module-Metadata to CPAN version 1.000009
Chris 'BinGOs' Williams [Wed, 8 Feb 2012 18:24:00 +0000 (18:24 +0000)]
Update Module-Metadata to CPAN version 1.000009

  [DELTA]

  1.0.9 2012-02-08 12:00:00
    - API of 'provides' changed to require a 'version' argument to future
      proof the function against CPAN Meta Spec changes (DAGOLDEN)
    - Fatal errors now use 'croak' instead of 'die'; Carp added as
      prerequisite (DAGOLDEN)

12 years agoClean up Pod::Html's cache as part of distclean on *nix.
Nicholas Clark [Tue, 7 Feb 2012 16:58:50 +0000 (17:58 +0100)]
Clean up Pod::Html's cache as part of distclean on *nix.

This has been done on win32 since commit b4a415570dc258dd in 2006.
However, the new Pod::Html caching code only uses one file, pod2htmd.tmp,
so remove now redundant cleanup code for pod2htmi.tmp.

12 years agoMove lib/Pod/t/eol.t to ext/Pod-Html, as it's testing Pod::Html.
Nicholas Clark [Tue, 7 Feb 2012 16:07:33 +0000 (17:07 +0100)]
Move lib/Pod/t/eol.t to ext/Pod-Html, as it's testing Pod::Html.

12 years agoConvert triplicated code in lib/Pod/t/eol.t to a loop.
Nicholas Clark [Tue, 7 Feb 2012 15:59:23 +0000 (16:59 +0100)]
Convert triplicated code in lib/Pod/t/eol.t to a loop.

12 years agoRefactor lib/Pod/t/eol.t
Nicholas Clark [Tue, 7 Feb 2012 15:20:18 +0000 (16:20 +0100)]
Refactor lib/Pod/t/eol.t

* use variables for the names of temporary files
* use lexicals for file handles
* check the return value of close
* use is() rather than ok() with ==
  [possibly still dubious that it's using unpack checksums for comparison,
   instead of SHAs or simply File::Compare]

12 years agoThe cleanup code in lib/Pod/t/eol.t needs updating to track Pod::Html changes.
Nicholas Clark [Tue, 7 Feb 2012 14:46:03 +0000 (15:46 +0100)]
The cleanup code in lib/Pod/t/eol.t needs updating to track Pod::Html changes.

eol.t gained code to clean up temporary files it generated as part of commit
0ec158f4b0db050a in 2002. The temporary file names used by Pod::Html were
changed by commit 33869856bc668ad8 in 2003, but eol.t had never been updated.

12 years agoAdd PERL_RELOCATABLE_INCPUSH to PL_non_bincompat_options, and hence -V output.
Nicholas Clark [Wed, 8 Feb 2012 13:38:01 +0000 (14:38 +0100)]
Add PERL_RELOCATABLE_INCPUSH to PL_non_bincompat_options, and hence -V output.

PERL_RELOCATABLE_INCPUSH was added in commit f31c6eed22759301. As it
causes a small specific behaviour change that isn't visible in any other
configuration option, it seems useful to indicate that the perl binary has
been compiled with it, to aid debugging. (Specifically, debugging of "Why
isn't this working?" when it failed to be enabled.)

12 years agoUpdate Parse-CPAN-Meta to CPAN version 1.4402
Chris 'BinGOs' Williams [Wed, 8 Feb 2012 09:51:30 +0000 (09:51 +0000)]
Update Parse-CPAN-Meta to CPAN version 1.4402

  [DELTA]

  1.4402 Tue Feb 07 2012
      - Minor maintenance: standardized newlines to Unix style

12 years agoUpdate CPAN-Meta-YAML to CPAN version 0.007
Chris 'BinGOs' Williams [Wed, 8 Feb 2012 09:45:12 +0000 (09:45 +0000)]
Update CPAN-Meta-YAML to CPAN version 0.007

  [DELTA]

  0.007     2012-02-07 22:42:42 EST5EDT

    - Generated from ADAMK/YAML-Tiny-1.50.tar.gz

    - Documentation fix to replace missing abstract

12 years agoUpdate Module-Metadata to CPAN version 1.000008
Chris 'BinGOs' Williams [Wed, 8 Feb 2012 09:29:02 +0000 (09:29 +0000)]
Update Module-Metadata to CPAN version 1.000008

  [DELTA]

  1.0.8 2012-02-07 22:30:00
    - Adds 'provides' method to generate a CPAN META provides data structure
      correctly; use of package_versions_from_directory is discouraged (DAGOLDEN)

12 years agofix cygwin -Uuseithreads hints
Reini Urban [Mon, 6 Feb 2012 20:29:46 +0000 (14:29 -0600)]
fix cygwin -Uuseithreads hints

Before -Uuseithreads resulted in a threaded perl. Now
-Uuseithreads and -Uusethreads DWIM

12 years agois_duplicate_pod() and get_pod_metadata() in pod_lib.pl modified $_
Nicholas Clark [Tue, 7 Feb 2012 16:18:36 +0000 (17:18 +0100)]
is_duplicate_pod() and get_pod_metadata() in pod_lib.pl modified $_

Reported by Reini Urban in RT #110078, installperl generated a warning and
failed to install CORE.pod, because is_duplicate_pod() modified $_
is_duplicate_pod() and get_pod_metadata() now both localise $_, to ensure
that they don't corrupt any caller's state.

12 years agoavoid making a new top-level package for one helper
Ricardo Signes [Tue, 7 Feb 2012 12:32:57 +0000 (07:32 -0500)]
avoid making a new top-level package for one helper

12 years agoUpdate CPAN-Meta-YAML to CPAN version 0.006
Chris 'BinGOs' Williams [Tue, 7 Feb 2012 10:14:27 +0000 (10:14 +0000)]
Update CPAN-Meta-YAML to CPAN version 0.006

  [DELTA]

  0.006     2012-02-06 20:51:47 EST5EDT

    - Generated from ADAMK/YAML-Tiny-1.50.tar.gz

    - Set back configure_requires prerequisite for ExtUtils::MakeMaker
      from 6.30 to 6.17 (per request from Andreas Koenig)

12 years agoin Carp, fix circular dep on Perl 5.6
Zefram [Tue, 7 Feb 2012 02:45:19 +0000 (02:45 +0000)]
in Carp, fix circular dep on Perl 5.6

The circular dependency between Carp and warnings was causing trouble
with new versions of Carp against very old versions of warnings (versions
that were bundled with Perl 5.6).  No functional effect on blead.

12 years agoadd an alias for marcg's other email
Ricardo Signes [Tue, 7 Feb 2012 03:11:04 +0000 (22:11 -0500)]
add an alias for marcg's other email

12 years agoFix portability issue with Pod::Html test case
Marc Green [Wed, 25 Jan 2012 02:20:55 +0000 (21:20 -0500)]
Fix portability issue with Pod::Html test case

12 years agoModernize the use of open() (copied from old code)
Marc Green [Tue, 17 Jan 2012 05:58:59 +0000 (00:58 -0500)]
Modernize the use of open() (copied from old code)

12 years agoUpdate MANIFEST
Marc Green [Tue, 17 Jan 2012 05:26:21 +0000 (00:26 -0500)]
Update MANIFEST

12 years agoRe-add cache feature
Marc Green [Fri, 13 Jan 2012 16:42:00 +0000 (11:42 -0500)]
Re-add cache feature

./installhtml was unacceptably slow without pod2html caching,
so this commit re-adds it.

12 years agonote which releases have shipped
Ricardo Signes [Mon, 6 Feb 2012 16:13:57 +0000 (11:13 -0500)]
note which releases have shipped

this is to make it easier to scan and find which release
is the next unscheduled, unshipped one, so we (I) can see
how far off we have scheduled and whether a next volutneer
needs to be volunteered

12 years agoDocument the special meaning of "indir" on the shebang line
Rafael Garcia-Suarez [Mon, 6 Feb 2012 09:05:00 +0000 (10:05 +0100)]
Document the special meaning of "indir" on the shebang line

12 years agosync version.pm code with CPAN
David Golden [Mon, 6 Feb 2012 03:20:03 +0000 (22:20 -0500)]
sync version.pm code with CPAN

Applied patch from John Peacock, but added whitespace fixes,
corrected pod link error and updated known Pod issues to reflect
a fix.

12 years agoIn t/porting/authors.t, correct a typo in the git log format string.
Nicholas Clark [Sun, 5 Feb 2012 21:16:58 +0000 (22:16 +0100)]
In t/porting/authors.t, correct a typo in the git log format string.

The format added in commit 3ea0c581844689ab had a typo - %cn (committer
name) used instead of %ce (committer e-mail).

12 years agoIn bisect-runner.pl, don't set $defines{cc} if printing usage messages.
Nicholas Clark [Sun, 5 Feb 2012 14:52:16 +0000 (15:52 +0100)]
In bisect-runner.pl, don't set $defines{cc} if printing usage messages.

ccache isn't needed to print a usage message. The current heuristic for
detecting ccache is noisy if it fails, which interferes with any usage or
error output.

12 years agobisect.pl --help should show the full documentation, not just the usage.
Nicholas Clark [Sun, 5 Feb 2012 14:35:37 +0000 (15:35 +0100)]
bisect.pl --help should show the full documentation, not just the usage.

The initial paragraphs of documentation are actually more useful than most of
the options documentation. So show them too.

Suggested by David Leadbeater.

12 years agowarnings.pm docs: clarify categories are in perllexwarn
David Golden [Sun, 5 Feb 2012 01:28:05 +0000 (20:28 -0500)]
warnings.pm docs: clarify categories are in perllexwarn

12 years agoUnicode::UCD move =item in pod
Karl Williamson [Tue, 31 Jan 2012 18:21:22 +0000 (11:21 -0700)]
Unicode::UCD move =item in pod

This merely moves a whole=item to another place, in preparation for
future commits

12 years agoperldelta for Unicode::UCD::prop_invmap() changes
Karl Williamson [Sat, 4 Feb 2012 23:04:34 +0000 (16:04 -0700)]
perldelta for Unicode::UCD::prop_invmap() changes

12 years agoUnicode::UCD::prop_invmap() compress digit results
Karl Williamson [Tue, 31 Jan 2012 16:55:44 +0000 (09:55 -0700)]
Unicode::UCD::prop_invmap() compress digit results

This changes the output of prop_invmap() for the Perl_Decimal_Digit
property to use code point deltas, similar to other properties.  This
causes the output to be 1/10 what it used to be.

12 years agoUCD.t: White space only
Karl Williamson [Tue, 31 Jan 2012 17:25:46 +0000 (10:25 -0700)]
UCD.t: White space only

Indent properly to account for these being in a newly formed block

12 years agoUnicode::UCD::prop_invmap(): Make the NFKCCF property return deltas
Karl Williamson [Tue, 31 Jan 2012 01:17:11 +0000 (18:17 -0700)]
Unicode::UCD::prop_invmap(): Make the NFKCCF property return deltas

The file for this property is stored in the old-style format for
backward compatibility with any applications that might be reading it
directly.  But the values should be returned through the Unicode::UCD
API as deltas for consistency with other, similar properties.

12 years agoUnicode::UCD::prop_invmap(): Return deltas for the 'dm' property
Karl Williamson [Sun, 29 Jan 2012 00:39:10 +0000 (17:39 -0700)]
Unicode::UCD::prop_invmap(): Return deltas for the 'dm' property

Earlier commits caused the return of prop_invmap() for certain
properties to return deltas from code points instead of the code points
themselves, for compactness of storage and speed of searching.  This
causes the same for the 'dm' property, for consistency with the others,
even though the space savings is not large for this one; essentially the
same code can be used for the two types now; instead of an application
having to have special cases.

12 years agoutf8.c: white-space only
Karl Williamson [Sat, 28 Jan 2012 19:44:29 +0000 (12:44 -0700)]
utf8.c: white-space only

This adds an indent now that the code is in a newly created block

12 years agoutf8.c: Use the new compact case mapping tables
Karl Williamson [Sat, 28 Jan 2012 17:47:25 +0000 (10:47 -0700)]
utf8.c: Use the new compact case mapping tables

This changes the Perl core when looking up the
upper/lower/title/fold-case of a code point to use the newly created
more compact tables.  Currently the look-up is done by a linear search,
and the new tables are 54-61% of the size of the old ones, so that on
average searches are that much shorter

12 years agomktables: Generate some delta tables
Karl Williamson [Sat, 28 Jan 2012 16:51:58 +0000 (09:51 -0700)]
mktables: Generate some delta tables

This commit has the effect of changing the non-legacy tables for the lc,
uc, tc, and fc properties to use maps of deltas from the code points
instead of the code points themselves, thus shortening them
significantly, and hence the time required to search through them.

Note that these tables are new, and currently used only by Unicode::UCD.
A future commit will change the Perl core to use them.

12 years agomktables: Change generated file comment
Karl Williamson [Sat, 28 Jan 2012 16:26:29 +0000 (09:26 -0700)]
mktables: Change generated file comment

All the files that mktables generates that are for external-to-core use
have now been changed so that the code requests explicitly for each that
they have the comment that says they are for external use, but it is
deprecated to use them.  That means that any files that haven't been so
explicitly set should have the comment instead that says they are for
internal use only.

12 years agomktables: Preserve old format in some tables
Karl Williamson [Fri, 27 Jan 2012 18:33:51 +0000 (11:33 -0700)]
mktables: Preserve old format in some tables

Future commits will cause tables that map to code points to, in general,
use deltas instead.  This ensures that files that contain tables and
have been mentioned publicly in the past continue to have their current
contents and format, so that applications that read them (such as
Unicode::Normalize) are unaffected.

12 years agoUnicode::UCD: pod and comment nits
Karl Williamson [Fri, 27 Jan 2012 18:26:03 +0000 (11:26 -0700)]
Unicode::UCD: pod and comment nits

12 years agomktables: Allow generation of delta tables
Karl Williamson [Fri, 27 Jan 2012 17:50:47 +0000 (10:50 -0700)]
mktables: Allow generation of delta tables

Delta tables are those in which the mapping is not stored as-is, but is
modified to be the delta between the actual mapping and the code point
it is for.  This allows for smaller tables that are faster to search and
require less memory to store.

For example, consider the lower case mapping of A=>a, B=b, ... Z=>z.
Prior to this patch, this requires 26 entries in the table; now it
requires just one.  This is because A=65 and a=97.  We store 97-65=32.
And 32 is the same delta for each of A-Z, so we can store these as a
single range each with the same value, 32.

The delta tables tend to be half as large as the non-ones, or even
smaller.

This just enables the feature.  No tables currently use it.  For that,
changes in other Unicode::UCD need to be coordinated.

12 years agomktables: White-space, comments only
Karl Williamson [Fri, 27 Jan 2012 04:27:30 +0000 (21:27 -0700)]
mktables: White-space, comments only

A previous commit has added two nested blocks surrounding the affected
code.  This looks like a big change, but it is in fact only white space
plus reflowing things to fit in an 80 column window, plus slight changes
to comments.

I verified that there were no code changes by using a diff command that
can ignore leading white space changes, and hence gave a more accurate
difference listing

12 years agomktables: Refactor if-else series
Karl Williamson [Fri, 27 Jan 2012 04:01:33 +0000 (21:01 -0700)]
mktables: Refactor if-else series

This is a slight refactoring to avoid using 'next' in the loop, and to
surround things with a bare block.  Future commits will want to
do common code at the bottom of the loop, including a redo of the bare
block.

12 years agoUnicode::UCD::prop_invmap(): Use regex to get trie
Karl Williamson [Mon, 23 Jan 2012 19:43:42 +0000 (12:43 -0700)]
Unicode::UCD::prop_invmap(): Use regex to get trie

This should speed up this test slightly

12 years agomktables: Don't generate no-longer used tables
Karl Williamson [Sun, 22 Jan 2012 15:50:24 +0000 (08:50 -0700)]
mktables: Don't generate no-longer used tables

Previous commits have removed all uses of these tables, so they are no
longer needed.

12 years agoUnicode::UCD: Rmv uses of no-longer needed tables
Karl Williamson [Sun, 22 Jan 2012 15:35:34 +0000 (08:35 -0700)]
Unicode::UCD: Rmv uses of no-longer needed tables

Previous commits have expanded whats in the full case mapping tables
to include the simple maps as well.  Thus the specially constructed
tables need no longer be used, leading to simplification.

12 years agoUCD.t: white space only
Karl Williamson [Sun, 22 Jan 2012 15:27:11 +0000 (08:27 -0700)]
UCD.t: white space only

outdent now that surrounding block is removed

12 years agomktables: Include simple mappings in full tables
Karl Williamson [Sun, 22 Jan 2012 03:04:51 +0000 (20:04 -0700)]
mktables: Include simple mappings in full tables

This changes the case change mapping tables to include the simple
mappings.  This was done in 5.14 for the case folding table.  The full
mappings are contained, as before, in a hash.  Now the simple mappings
they override (when doing multi-char case changing) are added to the
main body of the table, to the already existing simple mappings that
aren't overridden.

If the caller wants to do full mapping, it should look first in the
hash, and only if not found, look in the main body.  If the caller wants
only simple mapping, it ignores the hash.

This is already how the code in utf8.c that reads these tables is
constructed.

The .t is modified to take into account that these code points are now
in the main table body.

12 years agomktables: Add duplicate tables
Karl Williamson [Sat, 21 Jan 2012 22:27:00 +0000 (15:27 -0700)]
mktables: Add duplicate tables

This is for backwards compatibility.  Future commits will change these
tables that are generated by mktables to be more efficient.  But the
existence of them was advertised in v5.12 and v5.14, as something a Perl
program could use because the Perl core did not provide access to their
contents.  We can't change the format of those without some notice.

The solution adopted is to have two versions of the tables, one kept in
the original file name has the original format; and the other is free to
change formats at will.

This commit just creates copies of the original, with the same format.
Later commits will change the format to be more efficient.

We state in v5.16 that using these files is now deprecated, as the
information is now available through Unicode::UCD in a stable API.  But
we don't test for whether someone is opening and reading these files; so
the deprecation cycle should be somewhat long;  they will be unused, and
the only drawbacks to having them are some extra disk space and the time
spent in having to generate them at Perl build time.

This commit also changes the Perl core to use the original tables, so
that the new format can be gradually developed in a series of patches
without having to cut over the whole thing at once.

12 years agomktables: avoid some extra work
Karl Williamson [Thu, 26 Jan 2012 18:30:37 +0000 (11:30 -0700)]
mktables: avoid some extra work

The object is already known to us as the loop variable, so no need to
derive it again; and change the loop variable name and one other
variable name to distinguish the table as being the full map one from
the simple map one

12 years agomktables: Allow non-standard initializations of properties
Karl Williamson [Thu, 26 Jan 2012 16:52:26 +0000 (09:52 -0700)]
mktables: Allow non-standard initializations of properties

Some property tables have multiple values per code point.  These include
the final Name-equivalent property in which some code points have more
than one synonym; and the full case changing property tables that are
supersets of the simple case changing tables, in which some code points
have a full mapping that differs from the simple mapping.

Prior to this patch, these could not be initialized simply using the
Initialize parameter to the constructor, as it was unable to handle
multiple values per code point.

This also preserves the range type.

12 years agomktables: Comments, white-space and typo in message text only
Karl Williamson [Mon, 23 Jan 2012 16:23:16 +0000 (09:23 -0700)]
mktables: Comments, white-space and typo in message text only

12 years agomktables: Refactor populating simple case folding tables
Karl Williamson [Sat, 21 Jan 2012 19:57:41 +0000 (12:57 -0700)]
mktables: Refactor populating simple case folding tables

These three tables are handled alike; this creates a loop to execute the
same instructions on each of them.  Currently there is so little to do,
that it wouldn't be worth it, except that future commits will add
complications, and this makes those easier to handle.

There is now a test that the input data is sane, and instead of
overwriting a value in a table with a known identical value, we skip
that.  This doesn't save much effort, because most of the work is
looking up the value (which we can now check sanity for), but again will
be useful for future commits.

12 years agomktables: Assume a leading zero means hex format
Karl Williamson [Sat, 21 Jan 2012 20:19:15 +0000 (13:19 -0700)]
mktables: Assume a leading zero means hex format

When calculating the format of a table, assume that there are no leading
zeros if it is a decimal number, but that means hex.

12 years agomktables: Don't populate the _stc table
Karl Williamson [Sat, 21 Jan 2012 19:47:01 +0000 (12:47 -0700)]
mktables: Don't populate the _stc table

This table was used only by Unicode::UCD which no longer uses it, and it
turns out that the data in it are redundant.  This is in preparation for
refactoring and removal of the table altogether.

12 years agoUnicode::UCD: Don't read _stc table
Karl Williamson [Sat, 21 Jan 2012 19:37:28 +0000 (12:37 -0700)]
Unicode::UCD: Don't read _stc table

It turns out that currently in Unicode 6.0, this table is redundant.
This prepares for removing it altogether.

12 years agomktables: Subroutine call needs to be fully qualified
Karl Williamson [Sat, 21 Jan 2012 16:21:40 +0000 (09:21 -0700)]
mktables: Subroutine call needs to be fully qualified

As it is calling something in a different package

12 years agoUnicode 6.1
Karl Williamson [Thu, 2 Feb 2012 21:12:29 +0000 (14:12 -0700)]
Unicode 6.1

This commit delivers the official Unicode character database files for
release 6.1, plus the final bits needed to cope with the changes in them
from release 6.0, including documentation.

12 years agocharnames: pod nits
Karl Williamson [Fri, 3 Feb 2012 04:24:35 +0000 (21:24 -0700)]
charnames: pod nits

12 years agomktables: Cope with 6.1 Name_Alias changes
Karl Williamson [Thu, 2 Feb 2012 02:46:16 +0000 (19:46 -0700)]
mktables: Cope with 6.1 Name_Alias changes

This property has an extra field.  So far, commits have allowed mktables
to cope with an extra field, with the value it would have if it had
existed in earlier Unicode releases.  This adds code to deal with the
values it will have in 6.1

12 years agoUnicode::UCD: Cope with 6.1 Name_Alias changes
Karl Williamson [Thu, 2 Feb 2012 02:32:24 +0000 (19:32 -0700)]
Unicode::UCD: Cope with 6.1 Name_Alias changes

The format of this property in Unicode 6.1 is changing, so that the
previous algorithm for separating it out from Name.pl no longer works.

12 years agoUpdate CPAN-Meta to CPAN version 2.120351
Chris 'BinGOs' Williams [Sat, 4 Feb 2012 10:23:42 +0000 (10:23 +0000)]
Update CPAN-Meta to CPAN version 2.120351

  [DELTA]

  2.120351  2012-02-03 23:01:45 America/New_York

    [OTHER]

    - Fixed CPAN packaging errors

  2.120350  2012-02-03 22:46:59 America/New_York

    [BUGFIX]

    - Work around a memory leak bug involving version objects
      in boolean context.

12 years agoAvoid a warning from clang when compiling Data::Dumper.
Nicholas Clark [Sat, 4 Feb 2012 09:34:57 +0000 (10:34 +0100)]
Avoid a warning from clang when compiling Data::Dumper.

There are other similar casts to void elsewhere in Dumper.xs

12 years agoRemove ‘Useless use of "re" pragma’ warning
Father Chrysostomos [Sat, 4 Feb 2012 07:32:32 +0000 (23:32 -0800)]
Remove ‘Useless use of "re" pragma’ warning

It’s wrong.

$ ./perl -Ilib -le 'use re; print re::regmust(qr/foo/)'
Useless use of "re" pragma at -e line 1.
foo

Useless, eh?  OK, then:

$ ./perl -Ilib -le 'print re::regmust(qr/foo/)'
Undefined subroutine &re::regmust called at -e line 1.

12 years agoIncrease $re::VERSION to 0.19
Father Chrysostomos [Sat, 4 Feb 2012 07:27:44 +0000 (23:27 -0800)]
Increase $re::VERSION to 0.19

12 years ago[perl #58608] Fix DD’s dumping of qr|\/|
Father Chrysostomos [Sat, 4 Feb 2012 07:09:21 +0000 (23:09 -0800)]
[perl #58608] Fix DD’s dumping of qr|\/|

By trying to escape / as \/, DD was turning \/ into \\/, producing
invalid qr//’s like qr/ \\/ /.  You can’t (and don’t need to) escape a
/ preceded by a backslash.  But you have to make sure \\/ gets escaped
properly as \\\/.  Counting forward from the beginning of the string
and ignoring escaped characters is the proper way to do it.

12 years agoData::Dumper/qr.t: This test is not strict-safe
Father Chrysostomos [Sat, 4 Feb 2012 06:54:41 +0000 (22:54 -0800)]
Data::Dumper/qr.t: This test is not strict-safe

12 years agoData::Dumper/qr.t: Add test names and diagnostics
Father Chrysostomos [Sat, 4 Feb 2012 06:54:14 +0000 (22:54 -0800)]
Data::Dumper/qr.t: Add test names and diagnostics

12 years agoData::Dumper: qr.t: Add a pure-Perl TODO test
Father Chrysostomos [Sat, 4 Feb 2012 06:45:38 +0000 (22:45 -0800)]
Data::Dumper: qr.t: Add a pure-Perl TODO test

12 years agoUpdate MANIFEST with dist/Data-Dumper/t/qr.t
Father Chrysostomos [Sat, 4 Feb 2012 06:43:46 +0000 (22:43 -0800)]
Update MANIFEST with dist/Data-Dumper/t/qr.t

12 years ago[perl #58608] TODO tests for DD and qr|\/|
Alexandr Ciornii [Sat, 4 Feb 2012 06:42:31 +0000 (22:42 -0800)]
[perl #58608] TODO tests for DD and qr|\/|

12 years agoIncrease $Cwd::VERSION to 3.39_02
Father Chrysostomos [Sat, 4 Feb 2012 06:31:38 +0000 (22:31 -0800)]
Increase $Cwd::VERSION to 3.39_02

12 years agoLoad File::Spec before using it in Cwd
Eric Brine [Sat, 4 Feb 2012 03:32:57 +0000 (22:32 -0500)]
Load File::Spec before using it in Cwd

12 years ago[perl #109762] Stop !$^V from leaking
Father Chrysostomos [Sat, 4 Feb 2012 05:55:31 +0000 (21:55 -0800)]
[perl #109762] Stop !$^V from leaking

by mortalising the temporary SVs.

12 years agoIncrease $Data::Dumper::VERSION to 2.135_04
Father Chrysostomos [Sat, 4 Feb 2012 05:48:27 +0000 (21:48 -0800)]
Increase $Data::Dumper::VERSION to 2.135_04

12 years ago[perl #107372] DD and overloaded blessed globs
Father Chrysostomos [Sat, 4 Feb 2012 01:48:55 +0000 (17:48 -0800)]
[perl #107372] DD and overloaded blessed globs

Data::Dumper’s Perl implementation was not working with overloaded
blessed globs, which it thought were strings.

The _dump routine was already copying the value to another variable,
but it was using ref \$original or \$original stringified to see
whether it was dealing with a glob.  Since the copy was already there,
it made sense for it to use ref \$copy instead.  So that’s what I
made it do.

12 years agoFor the sake or robustness, avoid reproducing Perl guts in test file
Eric Brine [Fri, 3 Feb 2012 21:56:54 +0000 (13:56 -0800)]
For the sake or robustness, avoid reproducing Perl guts in test file

12 years agoAdd -c option to bisect-runner.pl, for use with -e
Nicholas Clark [Fri, 3 Feb 2012 20:08:43 +0000 (21:08 +0100)]
Add -c option to bisect-runner.pl, for use with -e

This allows one to easily bisect to find when a something became, or stopped
being, a (compile-time) syntax error.

12 years agoUpdate Version-Requirements to CPAN version 0.101022
Chris 'BinGOs' Williams [Fri, 3 Feb 2012 15:41:03 +0000 (15:41 +0000)]
Update Version-Requirements to CPAN version 0.101022

  [DELTA]

  0.101022  2012-02-03 10:29:59 America/New_York
    DEPRECATED DEPRECATED DEPRECATED DEPRECATED

    Version::Requirements is still DEPRECATED

    deprecation is only warned-about if not doing core perl tests,
    to quiet them up for the sake of porters' sanity

12 years agoCorrect a =head2 to a =head3 in perlfunc.pod
Nicholas Clark [Fri, 3 Feb 2012 16:47:04 +0000 (17:47 +0100)]
Correct a =head2 to a =head3 in perlfunc.pod

Commit 8f0d6a616731a3d1 added the 'Non-function Keywords by Cross-reference'
section, using =head3 to group by man page. However, the entry for entry
for perlsyn was typo'd as =head2.

12 years agoRevert "Add IO::Socket::IP 0.08 as dual-life module"
Ricardo Signes [Fri, 3 Feb 2012 15:24:20 +0000 (10:24 -0500)]
Revert "Add IO::Socket::IP 0.08 as dual-life module"

This reverts commit 497f7de2d964167330f7260590736e9adb18899c.

12 years agoupdate copyright years in Carp
Zefram [Fri, 3 Feb 2012 11:30:22 +0000 (11:30 +0000)]
update copyright years in Carp

12 years agoAdd IO::Socket::IP 0.08 as dual-life module
Paul Evans [Fri, 3 Feb 2012 09:33:16 +0000 (09:33 +0000)]
Add IO::Socket::IP 0.08 as dual-life module

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>