Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-04

UTF8FixBroken broken? ;-)

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Luca Olivetti

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

Reply by email