[luatex] string.char
Heiko Oberdiek
heiko.oberdiek at googlemail.com
Mon Apr 4 18:14:14 CEST 2011
Hello,
I have some obscure problem with string.char:
% luatex -ini
\catcode`\{=1
\catcode`\}=2
\newlinechar=-1
\directlua{tex.settoks(0, string.char(65, 0, 66))}
\message{\the\toks0}
\csname @@end\endcsname\end
As result I expect "A^^@B", but I get "A^^@^^@".
All bytes after the first zero are ^^@ (zero byte).
Tested with luatex 0.60.2 and 0.65.0.
What I am missing?
Yours sincerely
Heiko Oberdiek
More information about the luatex
mailing list