loCaseInsensitive

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
blestan
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 13.02.2010, 12:17

loCaseInsensitive

Post 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?
seawolf
Zeos Dev Team *
Zeos Dev Team *
Posts: 385
Joined: 04.06.2008, 19:50
Contact:

Post 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
blestan
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 13.02.2010, 12:17

loCaseInsensitive not working correctly with uft8 non ansi

Post 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
seawolf
Zeos Dev Team *
Zeos Dev Team *
Posts: 385
Joined: 04.06.2008, 19:50
Contact:

Post by seawolf »

Unicode is supported from version 7.x, so it is necessary upgrade library in order to use unicode
blestan
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 13.02.2010, 12:17

is 7.0 pretty stable

Post by blestan »

is 7.0 pretty stable
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

blestan,

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

Mark
Image
Post Reply