tests from the spaghetti doneness test to specifically testing
locales in its /usr/share/locale. Speeds up lib/locale.t to
13 minutes a run vs. the previous time of over two hours.
p4raw-id: //depot/perl@29332
trylocale($_);
}
close(LOCALES);
+} elsif ($^O eq 'openbsd' && -e '/usr/share/locale') {
+
+ # OpenBSD doesn't have a locale executable, so reading /usr/share/locale
+ # is much easier and faster than the last resort method.
+
+ opendir(LOCALES, '/usr/share/locale');
+ while ($_ = readdir(LOCALES)) {
+ chomp;
+ trylocale($_);
+ }
+ close(LOCALES);
} else {
# This is going to be slow.