summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-08-24 20:47:55 -0600
committerJames E Keenan <jkeenan@cpan.org>2022-08-25 09:01:07 -0400
commitbe552ced7556db8582622a745067e1b266e8ca91 (patch)
treecf45c135b6c9391c0ecdf57ca528bf0edaafadc2 /opcode.h
parent33ef5d2cdf69f4a7b22ff4c220758689b59b28a8 (diff)
downloadperl-be552ced7556db8582622a745067e1b266e8ca91.tar.gz
run/locale.t: skip illegal locale test when all are legal
OpenBSD believes that locales are so inherently insecure that it only internally has two locales: C and C.UTF-8, which it knows how to treat securely. However, to preserve at least the illusion of portability, the locale setting operations do not fail whatever garbage is passed as the locale name. (There may be unacceptable strings, but any reasonable locale name and a lot of unreasonable ones are accepted.) If the input name looks like it was meant to have "UTF-8" in its name, the locale is set to C.UTF-8. Otherwise, it is set to C. Early releases had bugs in switching between the two. I wrote a Configure probe some years ago to detect this situation. I forgot about this fact in adapting Bram's test case. It should be skipped on such platforms. This fixes #20149
Diffstat (limited to 'opcode.h')
0 files changed, 0 insertions, 0 deletions