summaryrefslogtreecommitdiff
path: root/lib/Unicode
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-04-06 16:53:50 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-04-06 16:53:50 +0000
commit0dec8e5f6e4cdd984e494d64414f4a55f8bbee84 (patch)
tree9e83eb96268d821022aedeb40efe136e9020f3e6 /lib/Unicode
parentc867b36081026b7a72e449b72b5b9916973f9bf1 (diff)
downloadperl-0dec8e5f6e4cdd984e494d64414f4a55f8bbee84.tar.gz
No need to avoid utf8 warnings after #15762.
p4raw-id: //depot/perl@15763
Diffstat (limited to 'lib/Unicode')
-rw-r--r--lib/Unicode/Collate.pm26
1 files changed, 12 insertions, 14 deletions
diff --git a/lib/Unicode/Collate.pm b/lib/Unicode/Collate.pm
index 43446162a9..8522a79f2c 100644
--- a/lib/Unicode/Collate.pm
+++ b/lib/Unicode/Collate.pm
@@ -137,26 +137,24 @@ sub parseEntry
# get element
my($e, $k) = split /;/, $line;
my @e = _getHexArray($e);
- { no warnings 'utf8'; $ele = pack('U*', @e); }
+ $ele = pack('U*', @e);
return if defined $self->{undefChar} && $ele =~ /$self->{undefChar}/;
# get sort key
- { no warnings 'utf8';
- if(
+ if(
defined $self->{ignoreName} && $name =~ /$self->{ignoreName}/ ||
defined $self->{ignoreChar} && $ele =~ /$self->{ignoreChar}/
- )
- {
- $self->{entries}{$ele} = $self->{ignored}{$ele} = 1;
- }
- else
- {
- foreach my $arr ($k =~ /\[(\S+)\]/g) {
- my $var = $arr =~ /\*/;
- push @key, $self->altCE( $var, _getHexArray($arr) );
- }
- $self->{entries}{$ele} = \@key;
+ )
+ {
+ $self->{entries}{$ele} = $self->{ignored}{$ele} = 1;
+ }
+ else
+ {
+ foreach my $arr ($k =~ /\[(\S+)\]/g) {
+ my $var = $arr =~ /\*/;
+ push @key, $self->altCE( $var, _getHexArray($arr) );
}
+ $self->{entries}{$ele} = \@key;
}
$self->{maxlength}{ord $ele} = scalar @e if @e > 1;
}