[fpc-pascal] UnicodeCompareStr and UnicodeCompareText strange result

AlexeyT aaa5500 at ya.ru
Tue Mar 17 20:44:13 CET 2020


FPC 3.0.4 Linux x64, test from Lazarus 2.0 trunk, ie with widestringmanager.

UnicodeCompareStr('aaa', 'AA')=1 - ?

UnicodeCompareText('aaa', 'AA')=1 - ok

UnicodeCompareStr('AAA', 'aa')=1 - ?

UnicodeCompareText('AAA', 'aa')=1 - ok

I expected that *Str gives different results, because 'a' vs 'A'.


-- 
Regards,
Alexey



More information about the fpc-pascal mailing list