Open ericoporto opened 3 months ago
Utf-8 specifics are affecting any method that:
for AGS 3.*:
for AGS 4.*:
ok, I added a few tests, but I also found a small bug in the new compiler.
This gives the error "test-string.asc(19): Expected a quote mark but found '¤' instead".
I think some string UpperCase/LowerCase tests would be useful to have by just having a few strings with characters from different alphabets - like lower/upper of Greek, and so on.
This gives the error "test-string.asc(19): Expected a quote mark but found '¤' instead".
I cannot remember what happened when I tested unicode char literals. But they are supposed to work, at least with the new compiler which is more advanced. Could you open a bug ticket in the main repository?
Sure, I will create a proper bug report later. To be specific this is only a bug in the new compiler, it works fine in the old one.
IndexOf could use a few additional utf-8 tests to ensure we are correctly getting the right index when either or both the string and needle have utf-8 characters.
There are probably other utf-8 tests that would be useful to add to strings but I don't remember right now any other cases.