anchor.diff:    Controls, LCLType,
     Dialogs, Forms,
     Clipbrd,
  +  FileUtil,
     ATSynEdit,
     ATSynEdit_LineParts,
     ATSynEdit_CanvasProc,
  
positive.code:             Ed.EncodingName:= cEncNameUtf8_NoBom;
              DoSave;
              MsgBox(Format(msgCannotSaveFileWithEnc, [OldEncoding]), MB_OK or MB_ICONWARNING);
            end
          else
            raise;
        end;
  
negative.code:     try
        try
          DoSave;
          //prevent empty result file, issue #3435
          if bNotEmpty and (FileUtil.FileSize(AFileName)=0) then
            raise EWriteError.Create('Saved to the empty resulting file');
        except
          on E: EConvertError do
            begin
  