projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb01e50
)
UCD.pm: Use traditional casing for script names
author
Karl Williamson
<public@khwilliamson.com>
Fri, 4 Mar 2011 01:00:08 +0000
(18:00 -0700)
committer
Karl Williamson
<public@khwilliamson.com>
Fri, 4 Mar 2011 02:26:17 +0000
(19:26 -0700)
For some reason UCD.pm has lowercased the first letters of the
non-first word in script names. For backwards compatibility, continue
to do so.
lib/Unicode/UCD.pm
patch
|
blob
|
history
diff --git
a/lib/Unicode/UCD.pm
b/lib/Unicode/UCD.pm
index
debb240
..
86aaa74
100644
(file)
--- a/
lib/Unicode/UCD.pm
+++ b/
lib/Unicode/UCD.pm
@@
-553,6
+553,7
@@
my %SCRIPTS;
sub _charscripts {
@SCRIPTS =_read_table("unicore/To/Sc.pl") unless @SCRIPTS;
foreach my $entry (@SCRIPTS) {
+ $entry->[2] =~ s/(_\w)/\L$1/g; # Preserve old-style casing
push @{$SCRIPTS{$entry->[2]}}, $entry;
}
}