Skip to content

Commit

Permalink
t/loc_tools: Don't return duplicates
Browse files Browse the repository at this point in the history
Make sure the return of find_locales() (and hence any internal subs
that call it) has no repeated locale names.
  • Loading branch information
khwilliamson committed Feb 15, 2024
1 parent 7cced8b commit 72037da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/loc_tools.pl
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,9 @@ ($;$)
}
}

@Locale = sort @Locale;
my %Locale;
$Locale{$_} = 1 for @Locale;
@Locale = sort keys %Locale;

return @Locale;
}
Expand Down

0 comments on commit 72037da

Please sign in to comment.