Преглед изворни кода

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

git-svn-id: trunk@42344 -
michael пре 6 година
родитељ
комит
ebd005d1a7
1 измењених фајлова са 3 додато и 0 уклоњено
  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
   If GetValue(s) then
+    begin
+    SetCodePage(s, CP_ACP, True); 
     Result:=s
+    end
   else
     Result:=Null;
 end;