Fix STRFMT stopping at NUL characters in format spec strings

This commit is contained in:
Rangi
2026-08-22 19:23:49 -04:00
parent 9fa5058add
commit 21a4b85a4f
3 changed files with 5 additions and 1 deletions
+4
View File
@@ -26,3 +26,7 @@ PRINTLN STRFMT("%d eol %", 1)
PRINTLN STRFMT("invalid %w spec", 42)
PRINTLN STRFMT("one=%d two=%d three=%d", 1)
DEF NUL EQUS STRFMT("%s \0 %s", "goodbye", "world")
ASSERT #NUL === "goodbye \0 world"
PRINTLN #NUL
Binary file not shown.