Apply the following modification to AnsiToNativeBuf in dbTables.pas (apply similar
changes to NativeToAnsiBuf):
procedure AnsiToNativeBuf(Locale: TLocale; Source, Dest: PChar; Len: Integer);
var
DataLoss: LongBool;
begin
if Len > 0 then
if Locale <> nil then
begin
EnterCriticalSection(CSAnsiToNative);
try
DbiAnsiToNative(Locale, Dest, Source, Len, DataLoss);
finally
LeaveCriticalSection(CSAnsiToNative);
end;
end else
CharToOemBuff(Source, Dest, Len);
end;
|