[solved] Bug on Gettoken()
Posted: 09 Sep 2025 13:28
Hi, I've found a
on a rare situation with gettoken():
If:
- the seperator is <crlf>
- flags is 1: return from start
- the last 2 tokens in the token-list are empty
- index is -2 or smaller
one separator (and for index < 2 the last token) are missing
The included script works *OK* for sep = '|'.
Chg sep to <crlf>
for index less than -1 the result is wrong.
For crlf you should look at the result of each gettoken in step mode!!!
Edit: Still x32, 26.90.0100
If:
- the seperator is <crlf>
- flags is 1: return from start
- the last 2 tokens in the token-list are empty
- index is -2 or smaller
The included script works *OK* for sep = '|'.
Chg sep to <crlf>
Edit: Still x32, 26.90.0100