<p>Am 08.10.2016 22:48 schrieb "Ched" <<a href="mailto:charles.edouard.des.vastes.vignes@gmail.com">charles.edouard.des.vastes.vignes@gmail.com</a>>:<br>
> In <a href="http://www.freepascal.org/docs-html/ref/refsu14.html#x37-400003.2.8">http://www.freepascal.org/docs-html/ref/refsu14.html#x37-400003.2.8</a> , the stack sized used by a Shortstring is Declared length + 2 . Why not Declared length + 1 ?</p>
<p>1 Byte length and a zero byte to allow easy conversion to PChar.</p>
<p>> Is it easy to change software codes using strings encoded in CP437 to widestring ? I hope so as widestring has no refcount and so should behave like string about copy/deep copy.</p>
<p>First WideString as such only exists on Windows for all other platforms it's am alias of UnicodeString which like AnsiString is reference counted. Also it's the standard Unicode string type inside the RTL and not WideString (precisely due to the reference count).<br>
Second the code changes themselves should be neglectable, but you'll need to check that your files specify the correct codepage or that you store your files as UTF-8 as otherwise string constants might have unexpected content.</p>
<p>Regards,<br>
Sven</p>