summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-03-11 11:17:22 -0700
committerKarl Williamson <khw@cpan.org>2022-06-12 11:34:35 -0600
commitdcbeec20aa8d80f2c21c51b36e28405a577f6c59 (patch)
treef45867d1cf7997e9b69eeac5af47626c447b1cdd /vms
parent33bdb9d365b93e59fc6d3c78402989659bb7ad37 (diff)
downloadperl-dcbeec20aa8d80f2c21c51b36e28405a577f6c59.tar.gz
locale.c: Use macros from previous commits
The last few commits have introduced layers of the locale character classification macros, so that quirks of certain platforms are compensated for at the lowest levels. Change locale.c to use those compensating macros instead of the porcelain libc ones. This causes these platforms to work in Perl more closely to the POSIX standard.
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 6c9fbc8ac0..a961d48cc0 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -5659,7 +5659,7 @@ int_expanded:
if (!DECC_EFS_CASE_PRESERVE) {
char * tbuf;
for (tbuf = rms_get_fna(myfab, mynam); *tbuf; tbuf++)
- if (islower(*tbuf)) { haslower = 1; break; }
+ if (isU8_LOWER_LC(*tbuf)) { haslower = 1; break; }
}
/* Is a long or a short name expected */
@@ -6281,7 +6281,7 @@ int_fileify_dirspec(const char *dir, char *buf, int *utf8_fl)
#endif
for (cp = trndir; *cp; cp++)
- if (islower(*cp)) { haslower = 1; break; }
+ if (isU8_LOWER_LC(*cp)) { haslower = 1; break; }
if (!((sts = sys$parse(&dirfab)) & STS$K_SUCCESS)) {
if ((dirfab.fab$l_sts == RMS$_DIR) ||
(dirfab.fab$l_sts == RMS$_DNF) ||
@@ -9490,7 +9490,7 @@ mp_expand_wild_cards(pTHX_ char *item, struct list_item **head,
*/
if (!DECC_EFS_CASE_PRESERVE) {
for (c = string; *c; ++c)
- if (isupper(*c))
+ if (isUPPER_L1(*c))
*c = toLOWER_L1(*c);
}
if (isunix) trim_unixpath(string,item,1);
@@ -13638,7 +13638,7 @@ mp_do_vms_realpath(pTHX_ const char *filespec, char *outbuf,
*/
if (!DECC_EFS_CASE_PRESERVE) {
for (cp = filespec; *cp; cp++)
- if (islower(*cp)) { haslower = 1; break; }
+ if (isU8_LOWER_LC(*cp)) { haslower = 1; break; }
if (haslower) __mystrtolower(rslt);
}
@@ -13789,7 +13789,7 @@ mp_do_vms_realname(pTHX_ const char *filespec, char *outbuf,
*/
if (!DECC_EFS_CASE_PRESERVE) {
for (cp = filespec; *cp; cp++)
- if (islower(*cp)) { haslower = 1; break; }
+ if (isU8_LOWER_LC(*cp)) { haslower = 1; break; }
if (haslower) __mystrtolower(outbuf);
}