summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texprinting.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/luametatex/source/tex/texprinting.h')
-rw-r--r--source/luametatex/source/tex/texprinting.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/luametatex/source/tex/texprinting.h b/source/luametatex/source/tex/texprinting.h
index b323b1ae5..5e311a0bb 100644
--- a/source/luametatex/source/tex/texprinting.h
+++ b/source/luametatex/source/tex/texprinting.h
@@ -105,12 +105,11 @@ inline static int tex_single_letter(strnumber s)
inline static int tex_is_active_cs(strnumber s)
{
if (s && str_length(s) > 3) {
- const unsigned char *ss = str_string(s);
- return (ss[0] == 0xEF) && (ss[1] == 0xBF) && (ss[2] == 0xBF);
+ const unsigned char *ss = str_string(s); // or signed and active_character ...
+ return (ss[0] == active_first) && (ss[1] == active_second) && (ss[2] == active_third);
} else {
return 0;
}
}
-# define active_cs_value(A) aux_str2uni((str_string((A))+3))
# endif