Browse Source

compiler: emit constants of encoding 0 in CP_NONE/DefaultSystemCodePage encoding (depends on modes witch)

git-svn-id: trunk@19302 -
paul 14 years ago
parent
commit
ff3791d1f3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/asmutils.pas

+ 2 - 0
compiler/asmutils.pas

@@ -59,6 +59,8 @@ uses
             current_asmdata.getdatalabel(referencelab);
             list.concat(tai_label.create(referencelab));
           end;
+        if (encoding=0) then
+          encoding:=CP_NONE;
         if (encoding=CP_NONE) and (m_systemcodepage in current_settings.modeswitches) then
           encoding:=current_settings.sourcecodepage;
         list.concat(tai_const.create_16bit(encoding));