mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 08:09:33 +02:00
* sqldb/dbase: explicit cast to pchar to avoid writing widestrings in dbf header. Fixes mantis #14473
git-svn-id: trunk@24069 -
This commit is contained in:
parent
5ee9fe75e9
commit
c9161bc51d
@ -595,10 +595,10 @@ begin
|
||||
RecordSize := SizeOf(rFieldDescVII);
|
||||
FillChar(Header^, HeaderSize, #0);
|
||||
PDbfHdr(Header)^.VerDBF := $04;
|
||||
// write language string
|
||||
// write language string. FPC needs an explicit cast to pchar to avoid calling widestring version of StrPLCopy
|
||||
StrPLCopy(
|
||||
@PAfterHdrVII(PChar(Header)+SizeOf(rDbfHdr))^.LanguageDriverName[32],
|
||||
ConstructLangName(FFileCodePage, lLocaleID, false),
|
||||
PChar(@PAfterHdrVII(PChar(Header)+SizeOf(rDbfHdr))^.LanguageDriverName[32]),
|
||||
PChar(ConstructLangName(FFileCodePage, lLocaleID, false)),
|
||||
63-32);
|
||||
lFieldDescPtr := @lFieldDescVII;
|
||||
end else begin
|
||||
|
Loading…
Reference in New Issue
Block a user