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