On Sat, 17 Dec 2011 13:45:03 -0200 Luiz Americo Pereira Camara <[email protected]> wrote:
> On 17/12/2011 13:26, Mattias Gaertner wrote: > > On Sat, 17 Dec 2011 13:05:53 -0200 > > Luiz Americo Pereira Camara<[email protected]> wrote: > > > >> On 17/12/2011 12:18, Felipe Monteiro de Carvalho wrote: > >>> Any ideas what could be the problems? > >> Probably you are using fpc 2.7.1 > > The screenshot shows 2.4.2. > > > >> See "Lazarus not starts on Windows" thread from October > >> > >> Try to remove call of UTF8ToSys in laz2_XMLRead.ReadXMLFile fpr fpc 2.7 > > Does that mean TFileStream now works with UTF-8 in fpc 2.7.1? > > I doubt that. > > > > It seems a different bug with similar symptoms IMO your workaround is dangerous. If removing the UTF8ToSys helps, then it means the passed filename is already in system encoding, which means somewhere a file name in the IDE is not UTF-8. The file name is probably used at various other places too. So, your workaround does not only is insufficient, it breaks all valid UTF-8 file names too. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
