You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tools (complete and add to the following information):
HEMTT: main
Description:
Unicode in sqf can cause problems for any code bellow it.
Seems like Span//Ranges are sometimes assumed to be by byte instead of by char??
Steps to reproduce:
Build with some sqf with unicode:
"🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭";
private _workingArms = if (alive player) then { 2 } else { 0 };
Logs:
thread '<unnamed>' panicked at libs\sqf\src\analyze\codes\saa1_if_assign.rs:97:43:
byte index 88 is not a char boundary; it is inside '🌭' (bytes 85..89) of `"🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭🌭";
Additional context:
I don't think unicode in sqf is that common,
and I don't think anyone has a real world example of it causing a problem,
so this might be something that can be ignored for now
The text was updated successfully, but these errors were encountered:
Tools (complete and add to the following information):
Description:
Unicode in sqf can cause problems for any code bellow it.
Seems like Span//Ranges are sometimes assumed to be by byte instead of by char??
Steps to reproduce:
Build with some sqf with unicode:
Logs:
Additional context:
I don't think unicode in sqf is that common,
and I don't think anyone has a real world example of it causing a problem,
so this might be something that can be ignored for now
The text was updated successfully, but these errors were encountered: