瀏覽代碼

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

git-svn-id: trunk@19302 -
paul 14 年之前
父節點
當前提交
ff3791d1f3
共有 1 個文件被更改,包括 2 次插入0 次删除
  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));