aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexBash.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2008-04-20 03:01:04 +0000
committernyamatongwe <unknown>2008-04-20 03:01:04 +0000
commitbcceb7d8295269d7b468d41f70413ea108abb192 (patch)
treefd4f9af4c09e56d957cc1ac5de7b1b40809632f9 /src/LexBash.cxx
parent71c30fc4aa2cea19dc884ede105fa098cc99a210 (diff)
downloadscintilla-mirror-bcceb7d8295269d7b468d41f70413ea108abb192.tar.gz
Safety for non-ASCII characters when calling ctype functions.
Diffstat (limited to 'src/LexBash.cxx')
-rw-r--r--src/LexBash.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexBash.cxx b/src/LexBash.cxx
index f0376b947..0797e68a9 100644
--- a/src/LexBash.cxx
+++ b/src/LexBash.cxx
@@ -273,7 +273,7 @@ static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle,
ch = chNext;
chNext = chNext2;
styler.ColourTo(i, SCE_SH_IDENTIFIER);
- } else if (isdigit(ch)) {
+ } else if (isascii(ch) && isdigit(ch)) {
state = SCE_SH_NUMBER;
numBase = BASH_BASE_DECIMAL;
if (ch == '0') { // hex,octal