[Lazarus] Errors in Windows

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Dec 17 16:53:34 CET 2011


On Sat, 17 Dec 2011 13:45:03 -0200
Luiz Americo Pereira Camara <luizmed at oi.com.br> wrote:

> On 17/12/2011 13:26, Mattias Gaertner wrote:
> > On Sat, 17 Dec 2011 13:05:53 -0200
> > Luiz Americo Pereira Camara<luizmed at oi.com.br>  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




More information about the Lazarus mailing list