diff options
author | Karl Williamson <khw@cpan.org> | 2015-03-10 14:52:08 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-03-12 20:10:32 -0600 |
commit | e6965c14693b6cad1c65f3a588597285a0e525a2 (patch) | |
tree | 93a3d1ece55019169bd5e2dffaf8a9041c26d646 /universal.c | |
parent | 22bc8aa4322ef10da30c6535091a327b3b904c34 (diff) | |
download | perl-e6965c14693b6cad1c65f3a588597285a0e525a2.tar.gz |
Fix t/loc_tools.pl
Commit 128e4113466e835078eb016709e5d23b86be3120 introduced a bug which
causes a failure only on netbsd. It failed to make a copy in a function
of the array whose reference is passed into it, and then modified the
elements, thus changing the original. I think what this does on other
platforms is to cause locales to be skipped from being tested (which is
wrong but doesn't show up as a test failure), but on netbsd, it appears
to expose a bug in their setlocale implementation, in which when
setlocale is called with an invalid category, it succeeds instead of
fails.
Another bug in that commit was fixed by
2cc6a9db5a91276f3ff662b3e5befa6799fde3ed. But that fix introduced yet
another bug, by extending category numbers to be negative (when a given
category doesn't actually exist on a platform) but failing to allow for
a minus sign in the regex pattern that should match any such number.
This problem showed up on vms and os390.
This commit fixes both problems.
Diffstat (limited to 'universal.c')
0 files changed, 0 insertions, 0 deletions