From ec5ae92378df86967a7e3707fc4d8cd1ab5b5234 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Thu, 11 Dec 2014 07:04:54 +0000 Subject: LuaTeX: Recover changes from r34311 (undefined behaviour when char is signed) git-svn-id: svn://tug.org/texlive/trunk@35786 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/lang/texlang.w | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Build/source/texk/web2c/luatexdir/lang') diff --git a/Build/source/texk/web2c/luatexdir/lang/texlang.w b/Build/source/texk/web2c/luatexdir/lang/texlang.w index 9ffe9f546a9..97d9f00c682 100644 --- a/Build/source/texk/web2c/luatexdir/lang/texlang.w +++ b/Build/source/texk/web2c/luatexdir/lang/texlang.w @@ -193,7 +193,7 @@ const char *clean_hyphenation(const char *buff, char **cleaned) char *uindex = (char *)word; const char *s = buff; - while (*s && !isspace(*s)) { + while (*s && !isspace((unsigned char)*s)) { word[i++] = (unsigned)*s; s++; if ((s-buff)>MAX_WORD_LEN) { @@ -271,7 +271,7 @@ void load_hyphenation(struct tex_language *lang, const unsigned char *buff) lua_rawgeti(L, LUA_REGISTRYINDEX, lang->exceptions); s = (const char *) buff; while (*s) { - while (isspace(*s)) + while (isspace((unsigned char)*s)) s++; if (*s) { value = s; -- cgit v1.2.3