[Lazarus] UTF8 string handling problem under linux
nc-gaertnma at netcologne.de
Wed Aug 14 22:13:11 CEST 2013
On Wed, 14 Aug 2013 17:48:58 +0800
Xiangrong Fang <xrfang at gmail.com> wrote:
> To help reproduce the problem, I altered the program a bit so that it does
> not look for a folder containing CJK path. To reproduce the problem:
> 1) compile and run this program under Linux (I am running Ubuntu 13.04
> 2) Click the "Write" button and choose the included "test.txt" file.
> 3) Click the "Read" button, the program will crash.
> Note: the test.txt file contains two lines, the program only read the first
> line, if that line contains CJK, it will crash.
Bug is in TXmlRegistry.
TXmlRegistry.GetValueData computes in bytes, while
TXMLRegistry.GetValueInfo returns length of widestring.
So, you can only use ascii characters in string values.
Please report this bug in fpc bug tracker.
More information about the Lazarus