FormatStr() on Linux (ppc) - unexpected result
Posted: Fri Jan 16, 2026 10:06 am
If using this code on windows and Hollywood 10:
It will properly output: 20260112
Using the same code in Void Linux on my X1000 it gives me: 2026 112. Seems like Linux interpretes "0" as "space"
Code: Select all
Function p_getDateYYYYMMDD()
mo$ = "1"
mo$ = FormatStr("%02s", mo$)
tag$ = "12"
tag$ = FormatStr("%02s", tag$)
Return ("2026"..mo$..tag$)
EndFunction
str$ = p_getDateYYYYMMDD()
DebugPrint(str$)Using the same code in Void Linux on my X1000 it gives me: 2026 112. Seems like Linux interpretes "0" as "space"