Page 1 of 1

[solved] Bug on Gettoken()

Posted: 09 Sep 2025 13:28
by PeterH
Hi, I've found a :bug: 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
:arrow: one separator (and for index < 2 the last token) are missing

The included script works *OK* for sep = '|'.
Chg sep to <crlf> :arrow: 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

Re: Bug on Gettoken()

Posted: 09 Sep 2025 14:36
by admin
Wow! :shock: :tup:

Fixed in next beta.

Re: [solved] Bug on Gettoken()

Posted: 09 Sep 2025 21:55
by PeterH
Thanks for the quick fix :tup: :beer:

Glad that my description was close to the real reason.
Had thought about some more testing, but I knew you are in advantage :whistle:
...having the source :P