Page 2 of 2

Re: Utf8 converter is missing in HostTextConv.

Posted: Wed Jul 31, 2019 5:06 pm
by Josef Templ
I am not sure that this loop is correct with respect to handling the very last character.

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;
- Josef

Re: Utf8 converter is missing in HostTextConv.

Posted: Fri Aug 02, 2019 2:45 pm
by Zinn
I checked my implementation once again and everything is alright. The last character is handle correctly.
- Helmut

Re: Utf8 converter is missing in HostTextConv.

Posted: Tue Aug 06, 2019 6:12 am
by Josef Templ
yes, it is a bit tricky, but it should work.

- josef