It seems that, depending on the input, UTF8FixBroken will enter an infinite loop, e.g.
s:=#248;
UTF8FixBroken(pchar(s));
I think it's missing an "else p^:=' ';" (or an "else inc(p)") after the
condition that checks for a 4 bytes start sequence.Bye
Luca Olivetti
Wetron Automatizaci?n S.A. http://www.wetron.es/
Tel. +34 93 5883004 Fax +34 93 5883007
