summaryrefslogtreecommitdiffstats
path: root/edit.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-04-26 13:36:33 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-04-26 13:36:33 +0000
commitc73ebd9aa108d55a09c7eebbf9a81e3453fa0c3b (patch)
treea35487e7f469b6510dab2172a21c8c7d36265033 /edit.c
parent3f16589816ab217ec425ecbf026a9a5ade18333f (diff)
Add ascii_strcasecmp() and ascii_strncasecmp() functions which do
locale-independent and case-insensitive string comparisons. Needed for mutt to work in iso-8859-9 environments, where tolower('I') != 'i'.
Diffstat (limited to 'edit.c')
-rw-r--r--edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/edit.c b/edit.c
index ff31bff1..07262fde 100644
--- a/edit.c
+++ b/edit.c
@@ -360,8 +360,8 @@ int mutt_builtin_editor (const char *path, HEADER *msg, HEADER *cur)
cur->msgno + 1);
}
buf = be_include_messages (p, buf, &bufmax, &buflen,
- (tolower (tmp[1]) == 'm'),
- (isupper ((unsigned char) tmp[1])));
+ (ascii_tolower (tmp[1]) == 'm'),
+ (ascii_isupper ((unsigned char) tmp[1])));
}
else
addstr (_("No mailbox.\n"));