[fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

Michael Schnell mschnell at lumino.de
Mon Apr 4 12:44:12 CEST 2016


On 04/04/2016 10:43 AM, tobiasgiesen at gmail.com wrote:
> "Unicode aware Pascal code needs to set DefaultSystemCodePage to 
> CP_UTF8". 

That can't be this ubiquitous. I do suppose that the default value is 
supposed to make sense in many cases.

OTOH, if - as you seem to suggest - there is any conversion at all when 
using TSTringList to store your UTF8 strings, (independent whether it 
"works" or not) this will introduce a decent performance problem. I 
don't know it that depends on the setting of DefaultSystemCodePage.

Please let us know what you find. (right now Lazarus does not seem to 
compile for me with 3.1.1, so I can't easily check myself.)

-Michael



More information about the fpc-pascal mailing list