Am 18.03.2013 19:54, schrieb A.L.E.C:
On 01/19/2013 07:00 PM, Michael Heydekamp wrote:
I believe this might be a simple counting problem: In step #2, RC is counting characters only and inserts an LF after pos. 76. In step #4, RC counts the already existing LF (which does not exist in step #2) as a character. This needs to be fixed, if my assumption should be correct. LFs shall not be counted as characters.
Fixed in d8270b66ccca4aef0db76bade89a398b1d33abe9.
Hmm, thanks, but the fix doesn't look correct to me.
The test scenario that I posted doesn't now wrap the lines as before in step #2. Before the fix, the test paragraph was wrapped like this in step #2 (without the quote chars, the first line being just a help line to count the chars):
1234567890123456789012345678901234567890123456789012345678901234567890123456 xxxäxxxx xxxxx xxx xxxxx xxxäxxxxx xxxxxx xxxxx xxxxxx xxxxxxxxxx xxxxxxxxxx. xxxx xxxxx xxxxx xxxx xx xx.xx. xxxxxx xxxxxxxxxxxx, xxxx xx xxx xxxx xxxxxxxxxx xxxx xxx xxxxxxxx xxßxx, xxxxx xxx xxxxxx xxx xxxx xxx xxxxxx xxxxx xxxx xx xxxxxxx xxxxxx "xxx xxx xxx xxxxxxx".
That was correct. Now it's wrapped like this in step #2:
1234567890123456789012345678901234567890123456789012345678901234567890123456 xxxäxxxx xxxxx xxx xxxxx xxxäxxxxx xxxxxx xxxxx xxxxxx xxxxxxxxxx xxxxxxxxxx. xxxx xxxxx xxxxx xxxx xx xx.xx. xxxxxx xxxxxxxxxxxx, xxxx xx xxx xxxx xxxxxxxxxx xxxx xxx xxxxxxxx xxßxx, xxxxx xxx xxxxxx xxx xxxx xxx xxxxxx xxxxx xxxx xx xxxxxxx xxxxxx "xxx xxx xxx xxxxxxx".
That's not correct, the "real" first line is one character too long.
So something has been "fixed" in step #2, although there was nothing to fix, because everything was correct already (but isn't now correct anymore). The correct fix should take place in step #4 (forwarding a message).
Please see test scenario again.
Michael Heydekamp Co-Admin freexp.de Düsseldorf/Germany