Преглед на файлове

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));