EndsWith bugs with non-casesensitive comparison if it's not done in UTF8
Posted: Tue Oct 17, 2023 4:31 pm
If you try to compare non-UTF8 data without case sensitivity with EndsWith(), the result is False always.
Code: Select all
ConsolePrint(EndsWith("testbla", "bla", True, #ENCODING_RAW)) ; prints 1
ConsolePrint(EndsWith("testbla", "bla", False, #ENCODING_RAW)) ; prints 0
ConsolePrint(EndsWith("testbla", "bla", True, #ENCODING_UTF8)) ; prints 1
ConsolePrint(EndsWith("testbla", "bla", False, #ENCODING_UTF8)) ; prints 1