summaryrefslogtreecommitdiff
path: root/Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf2gf.w
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf2gf.w')
-rw-r--r--Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf2gf.w8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf2gf.w b/Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf2gf.w
index ca4f3f0856d..20663537a94 100644
--- a/Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf2gf.w
+++ b/Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf2gf.w
@@ -2330,7 +2330,7 @@ static int fsearch(const char *search_string)
do
{Q = search_string;
- p = tolower(*Q);
+ p = tolower((unsigned char)*Q);
Ch = fgetc(config);
ch = tolower(Ch);
while(!(ch == p && old_ch == '\n') && Ch != EOF)
@@ -2347,7 +2347,7 @@ static int fsearch(const char *search_string)
/* there must be a space or a tab stop after the keyword */
goto success;
Ch = fgetc(config);
- if(tolower(Ch) != tolower(*Q))
+ if(tolower(Ch) != tolower((unsigned char)*Q))
break;
}
}
@@ -2410,14 +2410,14 @@ directories for the \.{pk\_directory} and the \.{tfm\_directory} keywords.
}
while(*P == '{') @q } @>
P++;
- if(!(isalpha(*P) || *P == '_'))
+ if(!(isalpha((unsigned char)*P) || *P == '_'))
{fprintf(stderr,@/
"Invalid environment variable name in configuration file\n");
exit(1);
}
*(env_p++) = *(P++);
while(*P)
- {if(isalnum(*P) || *P == '_')
+ {if(isalnum((unsigned char)*P) || *P == '_')
*(env_p++) = *(P++);
else
{@q { @> while(*P == '}')