Re: Utf8 converter is missing in HostTextConv.
Posted: Wed Jul 31, 2019 5:06 pm
I am not sure that this loop is correct with respect to handling the very last character.
- Josef
Code: Select all
ReadChar(r, ch);
WHILE ~r.rider.eof DO
ReadChar(r, nch);
IF (ch = CR) & (nch = LF) THEN ReadChar(r, nch)
ELSIF ch = LF THEN ch := CR
END;
wr.WriteChar(ch);
ch := nch;
END;