languages icon indicating copy to clipboard operation
languages copied to clipboard

FreePascal version uses short strings, truncating inputs

Open KarolS opened this issue 11 months ago • 2 comments

By default, FreePascal defines String as a synonym for ShortString, which cannot be longer than 255 bytes. Since many inputs are >255 bytes, the inputs get truncated and the results are incorrect.

https://www.freepascal.org/docs-html/prog/progsu25.html#x32-310001.2.25

https://wiki.freepascal.org/Character_and_string_types#String

KarolS avatar Jan 12 '25 22:01 KarolS

Thanks! We need to fix!

PEZ avatar Jan 12 '25 22:01 PEZ

Good to know! @KarolS if you know how to fix, would you mind making a PR?

bddicken avatar Jan 13 '25 04:01 bddicken