ini_lexmap:= TIniFile.Create(fn_lexmap_final);
        try
          ini_lexmap.WriteString('ref', IntToStr(i_sub), s_lexer);
        finally
          FreeAndNil(ini_lexmap);
        end;

with FPC trunk it converts .ini file to UTF8 BOM! Bad, because then my code reads this .ini file and it cannot find its 1st section: BOMCHARS[ref] is not found, only [ref] is found in original file. So

1) don't write BOM via WriteString

2) if BOM is there, allow ReadString to find section at the file begin: BOMCHARS[ref]

fpc 3.3 r43852 linux x64.

--
Regards,
Alexey

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to