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