On Wed, 14 Aug 2013 17:48:58 +0800 Xiangrong Fang <[email protected]> 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 > amd64). > 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. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
