Skip to content

Commit

Permalink
Revert "locale_threads: start of using platform locales"
Browse files Browse the repository at this point in the history
This reverts commit a7a8dea3aabb81a05aacaf3a26c49854a5854111.
  • Loading branch information
khwilliamson committed Nov 22, 2023
1 parent df939be commit 9803ed4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/locale_threads.t
Expand Up @@ -37,8 +37,7 @@ my $debug = 0;
my %map_category_name_to_number;
my %map_category_number_to_name;
my @valid_categories = valid_locale_categories();
my @platform_categories = platform_locale_categories();
foreach my $category (@platform_categories) {
foreach my $category (@valid_categories) {
my $cat_num = eval "&POSIX::$category";
die "Can't determine ${category}'s number: $@" if $@;

Expand Down Expand Up @@ -520,6 +519,7 @@ $iterations_per_test_group = 1 if $iterations_per_test_group == 0;
# LC_ALL get tested. But skip this nicety on platforms where we are restricted from
# using all the available categories, as it would make the code more complex
# for not that much gain.
my @platform_categories = platform_locale_categories();
my $lc_all_frequency = scalar @platform_categories == scalar @valid_categories
? 3
: -1;
Expand Down Expand Up @@ -899,7 +899,7 @@ SKIP: {
# These tests were determined by grepping through the code base for
# locale-sensitive operations, and then figuring out something to exercise
# them.
foreach my $category (@platform_categories) {
foreach my $category (@valid_categories) {
no warnings 'uninitialized';

print STDERR __FILE__, ": ", __LINE__, ": $category\n" if $debug > 1;
Expand Down

0 comments on commit 9803ed4

Please sign in to comment.