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