[luatex] string.char

Heiko Oberdiek heiko.oberdiek at googlemail.com
Mon Apr 4 18:14:14 CEST 2011


I have some obscure problem with string.char:

% luatex -ini

\directlua{tex.settoks(0, string.char(65, 0, 66))}

\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