Page 1 of 1

loCaseInsensitive

Posted: 11.05.2010, 09:52
by blestan
loCaseInsensitive is not working properly on Lazarus with non ascii charsets (utf8) because it use AnsiUpperCase and not Utf8UpperCase .. any ideas of fixups or patches?

Posted: 11.05.2010, 22:23
by seawolf
Sorry, I don't understand .. I searched on Zeos pas, but I haven't found any call to AnsiUpperCase .. moreover loCaseInsensitive is a standard type, not defined in Zeos

loCaseInsensitive not working correctly with uft8 non ansi

Posted: 12.05.2010, 07:33
by blestan
from ZAbstractRODataSet CompareDataFields

if CaseInsensitive then
begin
Value1 := AnsiUpperCase(SoftVarManager.GetAsString(KeyValues));
Value2 := AnsiUpperCase(SoftVarManager.GetAsString(RowValues));

when the Values are utf8 the procedure does not locate correctly non ansi strings (bulgarian cyrillic) db values

Posted: 12.05.2010, 08:22
by seawolf
Unicode is supported from version 7.x, so it is necessary upgrade library in order to use unicode

is 7.0 pretty stable

Posted: 12.05.2010, 09:49
by blestan
is 7.0 pretty stable

Posted: 13.05.2010, 00:48
by mdaems
blestan,

Can't you just tell me how I can fix this CompareDataFields function using {$IFDEF DELPHI12_UP} ?

Mark