Page MenuHomeFeedback Tracker

Scipting command <b><i>format</i></b> trims strings with more than 8191 characters
Closed, ResolvedPublic

Description

<b><i>format</i></b> cannot handle more than 8191 characters. A string will be trimmed to 8191 characters if it contains more characters than that.

Details

Legacy ID
2804052068
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

1.) Create a string with more than 8191 characters
2.) Execute <i>systemChat format ["length string = %1 | length compiled = %2", count toArray _string, count toArray format ["%1", _string]];</i>
3.) -> Difference in sizes of both strings

Additional Information

I'm guessing, this is known already as of the respective BIKI article:
https://community.bistudio.com/wiki/format

But I didn't find a ticket in here which is why I submitted this one.

Event Timeline

HereisJohnny edited Additional Information. (Show Details)
HereisJohnny set Category to Scripting.
HereisJohnny set Reproducibility to Always.
HereisJohnny set Severity to None.
HereisJohnny set Resolution to Open.
HereisJohnny set Legacy ID to 2804052068.May 8 2016, 11:45 AM
dedmen closed this task as Resolved.Jul 5 2024, 3:45 PM
dedmen claimed this task.
dedmen added a subscriber: dedmen.

2.18 now allows 8388608 characters
Also can put "%%" -> "%". Previously that would just be ignored, now it can be used to escape and include a % character in format string