-
Notifications
You must be signed in to change notification settings - Fork 581
PATCH for 5.16.1: Correct Unicode's 6.1 typo #12199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @khwilliamsonThis is a bug report for perl from khw@karl.(none), The attached patch fixes the typo in the Unicode 6.1 data files to be Flags: Site configuration information for perl 5.16.0: Configured by khw at Mon Jun 18 20:03:57 MDT 2012. Summary of my perl5 (revision 5 version 16 subversion 0) configuration: Locally applied patches: @INC for perl 5.16.0: /home/khw/devel/lib/perl5/site_perl/5.16.0/i686-linux-thread-multi-64int-ld Environment for perl 5.16.0: PATH=/home/khw/bin:/home/khw/print/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/games:/home/khw/cxoffice/bin |
From @khwilliamson0001-mktables-Handle-typo-in-Unicode-6.1-data-file.patchFrom 7ef715807cc88c6c09962fd867b2cd1563b5565c Mon Sep 17 00:00:00 2001
From: Karl Williamson <[email protected]>
Date: Wed, 23 May 2012 17:14:36 -0600
Subject: [PATCH] mktables: Handle typo in Unicode 6.1 data file
Unicode has published a correction to their data files for version 6.1.
This patch applies that correction.
---
lib/Unicode/UCD.t | 3 +++
lib/unicore/mktables | 3 +++
pod/perldelta.pod | 7 +++++++
3 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/lib/Unicode/UCD.t b/lib/Unicode/UCD.t
index 638a1d8..2e5a741 100644
--- a/lib/Unicode/UCD.t
+++ b/lib/Unicode/UCD.t
@@ -708,6 +708,9 @@ while (<$propvalues>) {
next if /^\s* $/x; # Ignore empty and comment lines
chomp;
+ # Fix typo in official input file
+ s/CCC133/CCC132/g if $version eq "6.1.0";
+
my @fields = split /\s*;\s*/; # Fields are separated by semi-colons
my $prop = shift @fields; # 0th field is the property,
my $count = 0; # 0th field in line (after shifting off the property) is
diff --git a/lib/unicore/mktables b/lib/unicore/mktables
index 7eba4f9..458d4ec 100644
--- a/lib/unicore/mktables
+++ b/lib/unicore/mktables
@@ -9156,6 +9156,9 @@ sub process_PropValueAliases {
# Process each line of the file ...
while ($file->next_line) {
+ # Fix typo in input file
+ s/CCC133/CCC132/g if $v_version eq v6.1.0;
+
my ($property, @data) = split /\s*;\s*/;
# The ccc property has an extra field at the beginning, which is the
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 3b26bf5..6d45cc0 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -4156,6 +4156,13 @@ started [perl #37033].
C<< die; >> with a non-reference, non-string, or magical (e.g., tainted)
value in $@ now properly propagates that value [perl #111654].
+=item *
+
+Unicode 6.1 published an incorrect alias for one of the
+Canonical_Combining_Class property's values (which range between 0 and
+254). The alias C<CCC133> should have been C<CCC132>. Perl now
+overrides the data file furnished by Unicode to give the correct value.
+
=back
=head1 Known Problems
--
1.7.7.1
|
From @rjbsapplied with tentative sha1 of c29a8c7; might be rebased/etc |
@rjbs - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#113742 (status was 'resolved')
Searchable as RT113742$
The text was updated successfully, but these errors were encountered: