Menu

#5 Strange precondition for empty strings

open
nobody
None
5
2002-09-10
2002-09-10
Anonymous
No

When you have an empty string and want to do
valid_utf8 on it you get an error in UTF8_UTILS.valid_utf8.
The precondition "buffer.valid_index(start)" evaluates to
false because start is 1 but count of buffer is 0.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.