[perl.git] branch blead, updated. v5.23.2-279-g6916a94

2015-09-18 Thread Ricardo Signes
In perl.git, the branch blead has been updated



- Log -
commit 6916a94cde40f03bd33b3b63bf26ad8d48b399fd
Author: Ricardo Signes 
Date:   Fri Sep 18 13:29:43 2015 -0400

Update Encode to CPAN version 2.77

  [DELTA]

$Revision: 2.77 $ $Date: 2015/09/15 13:53:27 $
! Unicode/Unicode.xs Unicode/Unicode.pm
  Address RT#107043: If no BOM is found, the routine dies.
  When you decode from UTF-(16|32) without -BE or LE without BOM,
  Encode now assumes BE accordingly to RFC2781 and the Unicode
  Standard version 8.0
  https://rt.cpan.org/Public/Bug/Display.html?id=107043
! Makefile.PL encoding.t
  Mend pull/42
! Encode.xs Makefile.PL encoding.pm encoding.t
  Pulled: precompile 1252 table as that is now the Pod::Simple default
  https://github.com/dankogai/p5-encode/pull/42
---

Summary of changes:
 Porting/Maintainers.pl |  2 +-
 cpan/Encode/Encode.pm  |  4 ++--
 cpan/Encode/Encode.xs  | 25 +++--
 cpan/Encode/Makefile.PL|  4 ++--
 cpan/Encode/Unicode/Unicode.pm | 10 --
 cpan/Encode/Unicode/Unicode.xs | 18 ++
 cpan/Encode/encoding.pm| 17 -
 cpan/Encode/t/encoding.t   | 13 -
 cpan/Encode/ucm/koi8-u.ucm |  4 ++--
 9 files changed, 64 insertions(+), 33 deletions(-)

diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl
index d28fef7..ce207c4 100755
--- a/Porting/Maintainers.pl
+++ b/Porting/Maintainers.pl
@@ -385,7 +385,7 @@ use File::Glob qw(:case);
 },
 
 'Encode' => {
-'DISTRIBUTION' => 'DANKOGAI/Encode-2.76.tar.gz',
+'DISTRIBUTION' => 'DANKOGAI/Encode-2.77.tar.gz',
 'FILES'=> q[cpan/Encode],
 },
 
diff --git a/cpan/Encode/Encode.pm b/cpan/Encode/Encode.pm
index 1fea02b..574720e 100644
--- a/cpan/Encode/Encode.pm
+++ b/cpan/Encode/Encode.pm
@@ -1,10 +1,10 @@
 #
-# $Id: Encode.pm,v 2.76 2015/07/31 02:17:53 dankogai Exp $
+# $Id: Encode.pm,v 2.77 2015/09/15 13:53:11 dankogai Exp $
 #
 package Encode;
 use strict;
 use warnings;
-our $VERSION = sprintf "%d.%02d", q$Revision: 2.76 $ =~ /(\d+)/g;
+our $VERSION = sprintf "%d.%02d", q$Revision: 2.77 $ =~ /(\d+)/g;
 use constant DEBUG => !!$ENV{PERL_ENCODE_DEBUG};
 use XSLoader ();
 XSLoader::load( __PACKAGE__, $VERSION );
diff --git a/cpan/Encode/Encode.xs b/cpan/Encode/Encode.xs
index 73f64a8..81b5dea 100644
--- a/cpan/Encode/Encode.xs
+++ b/cpan/Encode/Encode.xs
@@ -1,5 +1,5 @@
 /*
- $Id: Encode.xs,v 2.33 2015/01/22 10:17:32 dankogai Exp $
+ $Id: Encode.xs,v 2.34 2015/09/15 13:53:27 dankogai Exp dankogai $
  */
 
 #define PERL_NO_GET_CONTEXT
@@ -534,20 +534,25 @@ CODE:
 }
 }
 else {
-   /* Native bytes - can always encode */
-U8 *d = (U8 *) SvGROW(dst, 2*slen+1); /* +1 or assertion will botch */
-   while (s < e) {
-   UV uv = NATIVE_TO_UNI((UV) *s);
-   s++; /* Above expansion of NATIVE_TO_UNI() is safer this way. */
+/* Native bytes - can always encode */
+U8 *d = (U8 *) SvGROW(dst, 2*slen+1); /* +1 or assertion will botch */
+while (s < e) {
+#ifdef append_utf8_from_native_byte
+append_utf8_from_native_byte(*s, );
+s++;
+#else
+UV uv = NATIVE_TO_UNI((UV) *s);
+s++; /* Above expansion of NATIVE_TO_UNI() is safer this way. */
 if (UNI_IS_INVARIANT(uv))
-   *d++ = (U8)UTF_TO_NATIVE(uv);
+*d++ = (U8)UTF_TO_NATIVE(uv);
 else {
-   *d++ = (U8)UTF8_EIGHT_BIT_HI(uv);
+*d++ = (U8)UTF8_EIGHT_BIT_HI(uv);
 *d++ = (U8)UTF8_EIGHT_BIT_LO(uv);
 }
-}
+#endif
+}
 SvCUR_set(dst, d- (U8 *)SvPVX(dst));
-   *SvEND(dst) = '\0';
+*SvEND(dst) = '\0';
 }
 
 /* Clear out translated part of source unless asked not to */
diff --git a/cpan/Encode/Makefile.PL b/cpan/Encode/Makefile.PL
index 0ee181b..39e5570 100644
--- a/cpan/Encode/Makefile.PL
+++ b/cpan/Encode/Makefile.PL
@@ -1,5 +1,5 @@
 #
-# $Id: Makefile.PL,v 2.14 2015/06/25 00:49:23 dankogai Exp $
+# $Id: Makefile.PL,v 2.15 2015/09/15 13:53:27 dankogai Exp dankogai $
 #
 use 5.007003;
 use strict;
@@ -15,7 +15,7 @@ $ENV{PERL_CORE} ||= $ARGV{PERL_CORE} if $ARGV{PERL_CORE};
 my %tables = 
 (
  def_t => ['ascii.ucm',
-   '8859-1.ucm',
+   '8859-1.ucm', # cp1252 is an alias thereof
'null.ucm',
'ctrl.ucm',
]
diff --git a/cpan/Encode/Unicode/Unicode.pm b/cpan/Encode/Unicode/Unicode.pm
index 3d9fb87..316768e 100644
--- a/cpan/Encode/Unicode/Unicode.pm
+++ b/cpan/Encode/Unicode/Unicode.pm
@@ -4,7 +4,7 @@ use strict;
 use 

[perl.git] branch blead, updated. v5.23.2-281-g6e3d6c0

2015-09-18 Thread Karl Williamson
In perl.git, the branch blead has been updated



- Log -
commit 6e3d6c029a00fdbf2f75673aa0f5ad22a047e329
Author: Karl Williamson 
Date:   Wed Aug 26 23:16:35 2015 -0600

Add API tests for utf8.h macros

M   ext/XS-APItest/APItest.pm
M   ext/XS-APItest/APItest.xs
M   ext/XS-APItest/t/utf8.t

commit 2d1545e53e75b1c3ae16ad055ae011e2e015e0c3
Author: Karl Williamson 
Date:   Sun Aug 2 21:20:44 2015 -0600

Change meaning of UNI_IS_INVARIANT on EBCDIC platforms

This should make more CPAN and other code work without change.  Usually,
unwittingly, code that says UNI_IS_INVARIANT means to use the native
platform code values for code points below 256, so acquiesce to the
expected meaning and make the macro correspond.  Since the native values
on ASCII machines are the same as Unicode, this change doesn't affect
code running on them.

A new macro, OFFUNI_IS_INVARIANT, is created for those few places that
really do want a Unicode value.  There are just a few places in the Perl
core like that, which this commit changes.

M   toke.c
M   utf8.c
M   utf8.h
M   utfebcdic.h
---

Summary of changes:
 ext/XS-APItest/APItest.pm |   2 +-
 ext/XS-APItest/APItest.xs |  84 
 ext/XS-APItest/t/utf8.t   | 121 +-
 toke.c|   2 +-
 utf8.c|   4 +-
 utf8.h|   8 ++-
 utfebcdic.h   |   3 +-
 7 files changed, 215 insertions(+), 9 deletions(-)

diff --git a/ext/XS-APItest/APItest.pm b/ext/XS-APItest/APItest.pm
index 93b3cb6..7570d9e 100644
--- a/ext/XS-APItest/APItest.pm
+++ b/ext/XS-APItest/APItest.pm
@@ -5,7 +5,7 @@ use strict;
 use warnings;
 use Carp;
 
-our $VERSION = '0.74';
+our $VERSION = '0.75';
 
 require XSLoader;
 
diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs
index 7a258de..ba7ecf7 100644
--- a/ext/XS-APItest/APItest.xs
+++ b/ext/XS-APItest/APItest.xs
@@ -4886,6 +4886,90 @@ test_isQUOTEMETA(UV ord)
 RETVAL
 
 UV
+test_OFFUNISKIP(UV ord)
+CODE:
+RETVAL = OFFUNISKIP(ord);
+OUTPUT:
+RETVAL
+
+bool
+test_OFFUNI_IS_INVARIANT(UV ord)
+CODE:
+RETVAL = OFFUNI_IS_INVARIANT(ord);
+OUTPUT:
+RETVAL
+
+bool
+test_UVCHR_IS_INVARIANT(UV ord)
+CODE:
+RETVAL = UVCHR_IS_INVARIANT(ord);
+OUTPUT:
+RETVAL
+
+bool
+test_UTF8_IS_INVARIANT(char ch)
+CODE:
+RETVAL = UTF8_IS_INVARIANT(ch);
+OUTPUT:
+RETVAL
+
+UV
+test_UVCHR_SKIP(UV ord)
+CODE:
+RETVAL = UVCHR_SKIP(ord);
+OUTPUT:
+RETVAL
+
+UV
+test_UTF8_SKIP(char * ch)
+CODE:
+RETVAL = UTF8_SKIP(ch);
+OUTPUT:
+RETVAL
+
+bool
+test_UTF8_IS_START(char ch)
+CODE:
+RETVAL = UTF8_IS_START(ch);
+OUTPUT:
+RETVAL
+
+bool
+test_UTF8_IS_CONTINUATION(char ch)
+CODE:
+RETVAL = UTF8_IS_CONTINUATION(ch);
+OUTPUT:
+RETVAL
+
+bool
+test_UTF8_IS_CONTINUED(char ch)
+CODE:
+RETVAL = UTF8_IS_CONTINUED(ch);
+OUTPUT:
+RETVAL
+
+bool
+test_UTF8_IS_DOWNGRADEABLE_START(char ch)
+CODE:
+RETVAL = UTF8_IS_DOWNGRADEABLE_START(ch);
+OUTPUT:
+RETVAL
+
+bool
+test_UTF8_IS_ABOVE_LATIN1(char ch)
+CODE:
+RETVAL = UTF8_IS_ABOVE_LATIN1(ch);
+OUTPUT:
+RETVAL
+
+bool
+test_isUTF8_POSSIBLY_PROBLEMATIC(char ch)
+CODE:
+RETVAL = isUTF8_POSSIBLY_PROBLEMATIC(ch);
+OUTPUT:
+RETVAL
+
+UV
 test_toLOWER(UV ord)
 CODE:
 RETVAL = toLOWER(ord);
diff --git a/ext/XS-APItest/t/utf8.t b/ext/XS-APItest/t/utf8.t
index 798380f..2984075 100644
--- a/ext/XS-APItest/t/utf8.t
+++ b/ext/XS-APItest/t/utf8.t
@@ -26,7 +26,8 @@ foreach ([0, '', '', 'empty'],
 is(bytes_cmp_utf8($right, $left), -$expect, "$desc reversed");
 }
 
-if (ord("A") == 65) { # EBCDIC is too hard to test for malformations
+my $isASCII = (ord("A") == 65);
+if ($isASCII) { # EBCDIC is too hard to test for malformations
 
 # Test uft8n_to_uvchr().  These provide essentially complete code coverage.
 
@@ -325,4 +326,122 @@ foreach my $test (@tests) {
 }
 }
 
+
+# The numbers in this array are chosen because they are "interesting" on
+# either ASCII or EBCDIC platforms. 0-255 require special handling on EBCDIC;
+# others are the boundaries where the number of bytes required to represent
+# them increase.
+my @code_points = (0 .. 256,
+   0x400 - 1, 0x400,
+   0x800 - 1, 0x800,
+   0x4000 - 1, 0x4000,
+   0x8000 - 1, 0x8000,
+   0xD000 - 1, 0xD000,  # First code point considered
+   

[perl.git] branch maint-votes, updated. fba508a0b9cc21c38517cec2c5a9598c27400761

2015-09-18 Thread Craig A. Berry
In perl.git, the branch maint-votes has been updated



- Log -
commit fba508a0b9cc21c38517cec2c5a9598c27400761
Author: Craig A. Berry 
Date:   Fri Sep 18 14:54:36 2015 -0500

Votes for some easier 5.22 candidates.

Hopefully more later.
---

Summary of changes:
 votes-5.22.xml | 21 +++--
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/votes-5.22.xml b/votes-5.22.xml
index cf6aead..e4813b8 100644
--- a/votes-5.22.xml
+++ b/votes-5.22.xml
@@ -25,7 +25,7 @@ Another bug fix, for "double-double long double" platforms 
(e.g. ppc linux):
 
 Fix broken builds in some environments:
 (jhi: Might not apply cleanly to 5.22 since surroundings have moved, feel free 
to ask me for assistance.)
-
+
 
 Small code quality tweaks:
 (jhi: The last one is possibly debatable since it has the chance of changing 
behavior.)
@@ -38,11 +38,11 @@ INSTALL tweaks related to quadmath:
 
 
 Doc-like commits:
-
-
-
-
-
+
+
+
+
+
 
 POSIX doc tweak:
 (jhi: Unfortunately it seems that the very last fragment might fail to apply 
because of the nearby signaling nan changes (which do not belong in 5.22). If 
in doubt, ask me for more details.)
@@ -131,6 +131,7 @@ The same criteria apply to code in dual-life modules as to 
core code.)
 (steveh: Does this need the update to Win32-0.52 
(083231ea891c049b70ef28512bfc9e68c3e5d595) too?:)
 
 
+(craigb: Following unnecessary without a55c5245146801, which is not currently 
a candidate)
 
 
 
@@ -149,10 +150,10 @@ The same criteria apply to code in dual-life modules as 
to core code.)
 
 Documentation Fixes
 
-
-
-
-
+
+
+
+
 
 
 

--
Perl5 Master Repository


[perl.git] branch maint-votes, updated. fbf00d4e85a3a9fd61e34f7ae869b101231705a7

2015-09-18 Thread Karl Williamson
In perl.git, the branch maint-votes has been updated



- Log -
commit fbf00d4e85a3a9fd61e34f7ae869b101231705a7
Author: Karl Williamson 
Date:   Fri Sep 18 14:24:13 2015 -0600

khw votes
---

Summary of changes:
 votes-5.22.xml | 102 ++---
 1 file changed, 54 insertions(+), 48 deletions(-)

diff --git a/votes-5.22.xml b/votes-5.22.xml
index e4813b8..0a27d63 100644
--- a/votes-5.22.xml
+++ b/votes-5.22.xml
@@ -5,9 +5,9 @@
 Tickets Listed in #125394: 5.22.1 blockers
 
 (arc: The commit referenced here is a maint-specific patch, as the fix in 
blead strikes me as too invasive for maint. It smoked cleanly, FWIW.)
-
+
 
-
+
 
 
 
@@ -17,50 +17,50 @@
  We can always make exceptions where deemed necessary, or otherwise drop them 
from the list.)
 
 Actual bug fix:
-
-
+
+
 
 Another bug fix, for "double-double long double" platforms (e.g. ppc linux):
-
+
 
 Fix broken builds in some environments:
 (jhi: Might not apply cleanly to 5.22 since surroundings have moved, feel free 
to ask me for assistance.)
-
+
 
 Small code quality tweaks:
 (jhi: The last one is possibly debatable since it has the chance of changing 
behavior.)
-
+
 
-
+
 
 INSTALL tweaks related to quadmath:
-
-
+
+
 
 Doc-like commits:
 
-
+
 
 
-
+
 
 POSIX doc tweak:
 (jhi: Unfortunately it seems that the very last fragment might fail to apply 
because of the nearby signaling nan changes (which do not belong in 5.22). If 
in doubt, ask me for more details.)
-
+
 (steveh: Version bump may need doing differently for maint, but it will need 
bumping:)
-
+
 
 Documentation patches (suggested by ether):
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
 
 
 
@@ -87,49 +87,55 @@ The same criteria apply to code in dual-life modules as to 
core code.)
 
 Crash / Assertion / Memory Corruption Fixes
 
-
+
 
-
-
+
+
 
-
-
-
+
+
+
 
-
-
+
+
 
-
+
 
 (steveh: I haven't yet looked at whether this is applicable to maint-5.22 or 
not, or (if it is) whether it needs the preceding four commits as well:)
+(khw: This is my commit.  It does fix a bug, but one that was present in 5.20 
and earlier.  It does need the 4 commits before it in order to compile.
+I would think this is too complicated for a maint release.  It also was found 
not from a field report but from the fuzzing work going on.
+So I'm inclined to not include it, even though I'm confident that it does fix 
this bug.)
 
 
 (steveh: Not a crash fix, but I feel this should be admissable for a maint 
release anyway:)
-
+(khw: Hanging IMO is just as serious as crashing.  But this is not a recent 
regression. OTOH, this is a trivial patch)
+
+(khw: The following isn't necessary, but is a trivial improvement on 22b43)
 
 
-
+
 
 
 
 Regression Fixes
 
-
+
 
-
-
+
+
 
-
-
+
+(khw: 47f59 is needed for ab8726 to apply cleanly, but the latter could be 
hand edited instead.  But the first is pretty trivial)
+
 
 
 
 Build and Installation Fixes
 
-
+
 
 (steveh: Does this need the update to Win32-0.52 
(083231ea891c049b70ef28512bfc9e68c3e5d595) too?:)
-
+
 
 (craigb: Following unnecessary without a55c5245146801, which is not currently 
a candidate)
 
@@ -143,17 +149,17 @@ The same criteria apply to code in dual-life modules as 
to core code.)
 Platform-Specific Test Fixes
 
 
-
-
+
+
 
 
 
 Documentation Fixes
 
-
-
-
-
+
+
+
+
 
 
 

--
Perl5 Master Repository


[perl.git] branch maint-votes, updated. 29d74e07b02908ae86fdd6c0fac9031161dd3d9f

2015-09-18 Thread Aaron Crane
In perl.git, the branch maint-votes has been updated



- Log -
commit 29d74e07b02908ae86fdd6c0fac9031161dd3d9f
Author: Aaron Crane 
Date:   Fri Sep 18 15:09:28 2015 +0100

Point to and vote for the maint fix for #125469
---

Summary of changes:
 votes-5.22.xml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/votes-5.22.xml b/votes-5.22.xml
index c228df5..cf6aead 100644
--- a/votes-5.22.xml
+++ b/votes-5.22.xml
@@ -4,7 +4,9 @@
 
 Tickets Listed in #125394: 5.22.1 blockers
 
-
+(arc: The commit referenced here is a maint-specific patch, as the fix in 
blead strikes me as too invasive for maint. It smoked cleanly, FWIW.)
+
+
 
 
 

--
Perl5 Master Repository


[perl.git] branch maint-votes, updated. ae250c8cd2b93b532d73e4c7e45e82fa9a3ebc30

2015-09-18 Thread Steve Hay via perl5-changes
In perl.git, the branch maint-votes has been updated



- Log -
commit ae250c8cd2b93b532d73e4c7e45e82fa9a3ebc30
Author: Steve Hay 
Date:   Fri Sep 18 14:16:06 2015 +0100

Finish updating voting file for 5.22, and add some votes
---

Summary of changes:
 votes-5.22.xml | 57 +
 1 file changed, 49 insertions(+), 8 deletions(-)

diff --git a/votes-5.22.xml b/votes-5.22.xml
index e4f031f..c228df5 100644
--- a/votes-5.22.xml
+++ b/votes-5.22.xml
@@ -11,12 +11,15 @@
 
 Other Commits Nominated in #125394: 5.22.1 blockers
 
+(steveh: These don't all meet the normal criteria for inclusion, but I've 
listed them for now since they've all been nominated anyway.
+ We can always make exceptions where deemed necessary, or otherwise drop them 
from the list.)
+
 Actual bug fix:
-
-
+
+
 
 Another bug fix, for "double-double long double" platforms (e.g. ppc linux):
-
+
 
 Fix broken builds in some environments:
 (jhi: Might not apply cleanly to 5.22 since surroundings have moved, feel free 
to ask me for assistance.)
@@ -29,8 +32,8 @@ Small code quality tweaks:
 
 
 INSTALL tweaks related to quadmath:
-
-
+
+
 
 Doc-like commits:
 
@@ -42,14 +45,16 @@ Doc-like commits:
 POSIX doc tweak:
 (jhi: Unfortunately it seems that the very last fragment might fail to apply 
because of the nearby signaling nan changes (which do not belong in 5.22). If 
in doubt, ask me for more details.)
 
+(steveh: Version bump may need doing differently for maint, but it will need 
bumping:)
+
 
 Documentation patches (suggested by ether):
 
 
-
+
 
 
-
+
 
 
 
@@ -59,7 +64,7 @@ Documentation patches (suggested by ether):
 
 Other Proposed Cherry-Picks
 
-Blead changes have been examined up to and including 
64821df16a716bfc005acb06c7dc5b72afabe38d ([perl #123961] handle a missing 
closing ` for -DT output)
+Blead changes have been examined up to and including 
a293d0fd7883038d8dfef01528c7398ba246b5f9 (Tentative fix for RT#125350 - AFL 
detected crash.)
 
 Proposed cherry-picks are grouped according to the types of change permitted 
by perlpolicy.pod.
 
@@ -83,11 +88,38 @@ The same criteria apply to code in dual-life modules as to 
core code.)
 
 
 
+
+
+
+
+
+
+
+
+
+
+
+(steveh: I haven't yet looked at whether this is applicable to maint-5.22 or 
not, or (if it is) whether it needs the preceding four commits as well:)
+
+
+(steveh: Not a crash fix, but I feel this should be admissable for a maint 
release anyway:)
+
+
+
+
 
 
 
 Regression Fixes
 
+
+
+
+
+
+
+
+
 
 
 Build and Installation Fixes
@@ -97,6 +129,8 @@ The same criteria apply to code in dual-life modules as to 
core code.)
 (steveh: Does this need the update to Win32-0.52 
(083231ea891c049b70ef28512bfc9e68c3e5d595) too?:)
 
 
+
+
 
 
 Portability Fixes
@@ -105,11 +139,18 @@ The same criteria apply to code in dual-life modules as 
to core code.)
 
 Platform-Specific Test Fixes
 
+
+
+
+
 
 
 Documentation Fixes
 
 
+
+
+
 
 
 

--
Perl5 Master Repository