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:
0b9f254
)
locale.t: Calculate locale values AFTER setting the locale
author
Karl Williamson
<public@khwilliamson.com>
Mon, 16 Jan 2012 00:12:47 +0000
(17:12 -0700)
committer
Karl Williamson
<public@khwilliamson.com>
Sat, 21 Jan 2012 17:02:52 +0000
(10:02 -0700)
This test was using the previous loop iteration's locale's values, since
it did the set after calculating them.
lib/locale.t
patch
|
blob
|
history
diff --git
a/lib/locale.t
b/lib/locale.t
index
99b3a15
..
d88aed6
100644
(file)
--- a/
lib/locale.t
+++ b/
lib/locale.t
@@
-501,8
+501,6
@@
sub tryneoalpha {
foreach $Locale (@Locale) {
debug "# Locale = $Locale\n";
- @Alnum_ = getalnum_();
- debug "# w = ", join("",@Alnum_), "\n";
unless (setlocale(LC_ALL, $Locale)) {
foreach (99..103) {
@@
-511,6
+509,9
@@
foreach $Locale (@Locale) {
next;
}
+ @Alnum_ = getalnum_();
+ debug "# w = ", join("",@Alnum_), "\n";
+
# Sieve the uppercase and the lowercase.
my %UPPER = ();