Zitat von Mehmet Erol Sanliturk : > > > Dear Sirs , > > > When a "project1.lpi" file is edited by a text editor > and the text editor inserts an "End of File" character ( Char ( 26 ) ) > at the end of the *.XML file , > the Lazarus is giving an error message : > > Unable the read the project info file > "C:\...\project1.lpi" Fixed in r15903. > When this character is removed , and > the "Unit1.pas" is edited with the same text editor > and the "End of File" character is appended at > the end of the file , > > the Lazarus is giving the following message : > > File "C:\...\Unit1.pas" does not look like a text file > Open it anyway ? Fixed in r15904. > Buttons : Ok > Abort > Ignore > > > When "Ok" is clicked , the Lazarus is loading > the "Unit1.pas" with the "End of File" character > correctly . > > > The Delphi compiler is loading all of the files > without any warning . > > HTML browsers ( such as Firefox , Opera , and ... ) are loading > XML and HTML files with the "End of File" character correctly and > without any warning . > > > It is my opinion that error message for the *.LPI file , > and warning message about other source files are unnecessary . > > The "End of File" character may be ignored by adding a > case selection part for Char ( 26 ) into file reading procedures > to simply ignore this character . > > Some text editors were appending many "End of File" characters > to fill the last written record up to 128 characters . > Therefore it is not necessary to count or check > multiplicity of that character . > > > Or , at least , error message about *.LPI file ( or *.XML files ) > may be made like the message about source files . Mattias