mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 07:39:25 +02:00
compiler: fix string const conversion from one codepage to another
git-svn-id: trunk@19222 -
This commit is contained in:
parent
5fa184c952
commit
6266b88b74
@ -1036,7 +1036,7 @@ implementation
|
||||
else if (cst_type in [cst_shortstring,cst_conststring,cst_longstring]) then
|
||||
cp2:=current_settings.sourcecodepage;
|
||||
if cpavailable(cp1) and cpavailable(cp2) then
|
||||
changecodepage(value_str,len,cp1,value_str,cp2);
|
||||
changecodepage(value_str,len,cp2,value_str,cp1);
|
||||
end;
|
||||
cst_type:=st2cst[tstringdef(def).stringtype];
|
||||
resultdef:=def;
|
||||
|
Loading…
Reference in New Issue
Block a user