summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texlanguage.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/luametatex/source/tex/texlanguage.c')
-rw-r--r--source/luametatex/source/tex/texlanguage.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/luametatex/source/tex/texlanguage.c b/source/luametatex/source/tex/texlanguage.c
index 0fcd3b243..200ffbd1e 100644
--- a/source/luametatex/source/tex/texlanguage.c
+++ b/source/luametatex/source/tex/texlanguage.c
@@ -1279,8 +1279,9 @@ static int tex_aux_still_okay(halfword f, halfword l, halfword r, int n, const c
tex_normal_warning("language", "the hyphenated word contains non-glyphs, skipping");
return 0;
} else {
- halfword c = (halfword) aux_str2uni((const unsigned char *) utf8original);
- utf8original += utf8_size(c);
+ int cl;
+ halfword c = (halfword) aux_str2uni_len((const unsigned char *) utf8original, &cl);
+ utf8original += cl;
if (! (c && c == glyph_character(f))) {
tex_normal_warning("language", "the hyphenated word contains different characters, skipping");
return 0;