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