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