[fpc-pascal] string to widestring : what are the difficulties ?

Ched charles.edouard.des.vastes.vignes at gmail.com
Sat Oct 8 22:47:42 CEST 2016


Hello,

In http://www.freepascal.org/docs-html/ref/refsu14.html#x37-400003.2.8 , the stack sized used by a 
Shortstring is Declared length + 2 . Why not Declared length + 1 ?

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.

Cheers, Ched'



More information about the fpc-pascal mailing list