summaryrefslogtreecommitdiffstats
path: root/src/option.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-17 21:38:25 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-17 21:38:25 +0000
commit0ef9a5c09482649cf0cc6768ed6fc640b4ed2a0a (patch)
treeae5d05622365b8043bf3068e07ad48afd64ca8bb /src/option.c
parent541c87c808df91b55e51fedc4987152a3edfe80d (diff)
patch 9.0.1215: using isalpha() adds dependency on current localev9.0.1215
Problem: Using isalpha() adds dependency on current locale. Solution: Do not use isalpha() for recognizing a URL or the end of an Ex command. (closes #11835)
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c
index 4afb518d1e..386cf4d3c3 100644
--- a/src/option.c
+++ b/src/option.c
@@ -1684,7 +1684,7 @@ do_set(
errmsg = NULL;
startarg = arg; // remember for error message
- if (STRNCMP(arg, "all", 3) == 0 && !isalpha(arg[3])
+ if (STRNCMP(arg, "all", 3) == 0 && !ASCII_ISALPHA(arg[3])
&& !(opt_flags & OPT_MODELINE))
{
/*