Hi Norbert,
I looked through the current sources in TeX Live and found that in fwrite.c, function range_check: if (strlen(ind.p[j].enc)>0) { sprintf(tmpbuff,"%s%s%s",encap_prefix,ind.p[j].enc,encap_infix); sprintf(tmpbuff,"%s%s%s",ind.p[j].page,encap_suffix,delim_n); linecheck(lbuff,tmpbuff); } that looks suspicious. The tmpbuff is overwritten on the second incantation, ...
I searched for similar lines in fwrite.c (see an attached fwrite.c.diff). I think these are apparently bugs. If I'm not wrong, please commit them. Thanks, Akira
fwrite.c.diff
Description: Binary data