Blame SOURCES/Unicode-Normalize-1.25-Upgrade-to-1.26.patch

ae0dc8
From 5ee924afc3aff6f8030a3a5523bb7d3f7f69fc52 Mon Sep 17 00:00:00 2001
ae0dc8
From: Jitka Plesnikova <jplesnik@redhat.com>
ae0dc8
Date: Thu, 24 May 2018 12:07:22 +0200
ae0dc8
Subject: [PATCH] Upgrade to 1.26
ae0dc8
ae0dc8
---
ae0dc8
 Changes      |  3 +++
ae0dc8
 Makefile.PL  |  2 +-
ae0dc8
 Normalize.pm | 22 +++++++++++-----------
ae0dc8
 3 files changed, 15 insertions(+), 12 deletions(-)
ae0dc8
ae0dc8
diff --git a/Changes b/Changes
ae0dc8
index ead5b3e..22ec16e 100644
ae0dc8
--- a/Changes
ae0dc8
+++ b/Changes
ae0dc8
@@ -1,5 +1,8 @@
ae0dc8
 Revision history for Perl extension Unicode::Normalize.
ae0dc8
 
ae0dc8
+1.26  *** RELEASE DATE HERE ***
ae0dc8
+    - Switch to XSLoader from Dynaloader
ae0dc8
+
ae0dc8
 1.25  Wed Dec 16 03:05:57 UTC 2015
ae0dc8
     - Fix Normalize.xs to work on releases earlier than 5.8.  The problem was
ae0dc8
       introduced in this module's version 1.24
ae0dc8
diff --git a/Makefile.PL b/Makefile.PL
ae0dc8
index 44a4b8d..18bc2e2 100644
ae0dc8
--- a/Makefile.PL
ae0dc8
+++ b/Makefile.PL
ae0dc8
@@ -8,7 +8,7 @@ my $mm_ver = ExtUtils::MakeMaker->VERSION;
ae0dc8
 if (-f "Normalize.xs") {
ae0dc8
     print STDERR "Making header files for XS...\n";
ae0dc8
 
ae0dc8
-    do 'mkheader' or die $@ || "mkheader: $!";
ae0dc8
+    do './mkheader' or die $@ || "mkheader: $!";
ae0dc8
 
ae0dc8
     $clean = { FILES => 'unfcan.h unfcmb.h unfcmp.h unfcpt.h unfexc.h' };
ae0dc8
 }
ae0dc8
diff --git a/Normalize.pm b/Normalize.pm
ae0dc8
index ff6c0f0..adf3db5 100644
ae0dc8
--- a/Normalize.pm
ae0dc8
+++ b/Normalize.pm
ae0dc8
@@ -16,7 +16,7 @@ use Carp;
ae0dc8
 
ae0dc8
 no warnings 'utf8';
ae0dc8
 
ae0dc8
-our $VERSION = '1.25';
ae0dc8
+our $VERSION = '1.26';
ae0dc8
 our $PACKAGE = __PACKAGE__;
ae0dc8
 
ae0dc8
 our @EXPORT = qw( NFC NFD NFKC NFKD );
ae0dc8
@@ -56,9 +56,9 @@ require Exporter;
ae0dc8
 
ae0dc8
 ##### The above part is common to XS and PP #####
ae0dc8
 
ae0dc8
-our @ISA = qw(Exporter DynaLoader);
ae0dc8
-require DynaLoader;
ae0dc8
-bootstrap Unicode::Normalize $VERSION;
ae0dc8
+our @ISA = qw(Exporter);
ae0dc8
+use XSLoader ();
ae0dc8
+XSLoader::load( 'Unicode::Normalize', $VERSION );
ae0dc8
 
ae0dc8
 ##### The below part is common to XS and PP #####
ae0dc8
 
ae0dc8
@@ -161,7 +161,7 @@ Unicode::Normalize - Unicode Normalization Forms
ae0dc8
 
ae0dc8
 Parameters:
ae0dc8
 
ae0dc8
-C<$string> is used as a string under character semantics (see F<perlunicode>).
ae0dc8
+C<$string> is used as a string under character semantics (see L<perlunicode>).
ae0dc8
 
ae0dc8
 C<$code_point> should be an unsigned integer representing a Unicode code point.
ae0dc8
 
ae0dc8
@@ -238,8 +238,8 @@ the decomposition is compatibility decomposition.
ae0dc8
 
ae0dc8
 The string returned is not always in NFD/NFKD. Reordering may be required.
ae0dc8
 
ae0dc8
-    $NFD_string  = reorder(decompose($string));       # eq. to NFD()
ae0dc8
-    $NFKD_string = reorder(decompose($string, TRUE)); # eq. to NFKD()
ae0dc8
+ $NFD_string  = reorder(decompose($string));       # eq. to NFD()
ae0dc8
+ $NFKD_string = reorder(decompose($string, TRUE)); # eq. to NFKD()
ae0dc8
 
ae0dc8
 =item C<$reordered_string = reorder($string)>
ae0dc8
 
ae0dc8
@@ -277,12 +277,12 @@ should be equal to the entire C<$normalized>.
ae0dc8
 When you have a C<$normalized> string and an C<$unnormalized> string
ae0dc8
 following it, a simple concatenation is wrong:
ae0dc8
 
ae0dc8
-    $concat = $normalized . normalize($form, $unnormalized); # wrong!
ae0dc8
+ $concat = $normalized . normalize($form, $unnormalized); # wrong!
ae0dc8
 
ae0dc8
 Instead of it, do like this:
ae0dc8
 
ae0dc8
-    ($processed, $unprocessed) = splitOnLastStarter($normalized);
ae0dc8
-     $concat = $processed . normalize($form, $unprocessed.$unnormalized);
ae0dc8
+ ($processed, $unprocessed) = splitOnLastStarter($normalized);
ae0dc8
+ $concat = $processed . normalize($form,$unprocessed.$unnormalized);
ae0dc8
 
ae0dc8
 C<splitOnLastStarter()> should be called with a pre-normalized parameter
ae0dc8
 C<$normalized>, that is in the same form as C<$form> you want.
ae0dc8
@@ -548,7 +548,7 @@ compiled into your perl.  The following table lists the default Unicode
ae0dc8
 version that comes with various perl versions.  (It is possible to change
ae0dc8
 the Unicode version in any perl version to be any earlier Unicode version,
ae0dc8
 so one could cause Unicode 3.2 to be used in any perl version starting with
ae0dc8
-5.8.0.  See C<$Config{privlib}>/F<unicore/README.perl>.
ae0dc8
+5.8.0.  Read F<C<$Config{privlib}>/unicore/README.perl> for details.
ae0dc8
 
ae0dc8
     perl's version     implemented Unicode version
ae0dc8
        5.6.1              3.0.1
ae0dc8
-- 
ae0dc8
2.14.3
ae0dc8