This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix ?/% mix-up in Perl_vms_start_glob.
authorCraig A. Berry <craigberry@mac.com>
Tue, 5 Jul 2011 02:19:15 +0000 (21:19 -0500)
committerCraig A. Berry <craigberry@mac.com>
Tue, 5 Jul 2011 02:19:15 +0000 (21:19 -0500)
commit998e043925965cf6a2a62e8b7f519b4bba121b13
tree2b0e4e68bd7f90e849f4afd3eaed958fc45333f3
parent6c8b7ff5cc78905b81e0c76fc54c60fc320b1194
Fix ?/% mix-up in Perl_vms_start_glob.

When it sees the unixy ? as a single-character wildcard rather than
the native %, it intended to leave it alone when the CRTL's extended
character set processing was enabled, but it was actually checking
for a different and unrelated feature setting (case preservation),
meaning it would substitute % for ? in some cases where it meant
not to.  This likely did no harm in most cases as LIB$FIND_FILE
will honor either, but if the pattern were to be re-used in a context
that required POSIX semantics, the ? really ought to be preserved
and now it is.

Broken in dca5a9130eb9e045fd52f88cf3dedee7093e19f7.
vms/vms.c