Explorar o código

* Fix bug ID #35796, codepage issue when getting string as variant

git-svn-id: trunk@42344 -
michael %!s(int64=6) %!d(string=hai) anos
pai
achega
ebd005d1a7
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      packages/fcl-db/src/base/fields.inc

+ 3 - 0
packages/fcl-db/src/base/fields.inc

@@ -1202,7 +1202,10 @@ var s : rawbytestring;
 
 
 begin
 begin
   If GetValue(s) then
   If GetValue(s) then
+    begin
+    SetCodePage(s, CP_ACP, True); 
     Result:=s
     Result:=s
+    end
   else
   else
     Result:=Null;
     Result:=Null;
 end;
 end;