Lazarus detects file with a long, first line as "binary"
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
When opening a "HTML resource" file as generated by pas2js which might contain long lines Lazarus might detect these files as non-binary because there's no newline during the first 1024 Byte. If this file is kept open upon recompilations then it's especially annoying as not only there's the "file was changed" dialog (*), but also this "file might not be text" dialog.
(*) Using the "use contents instead of time stamp" option improves this at least as long as nothing changed
Steps to reproduce:
- open the attached file in Lazarus
- notice the "file might not be text" dialog
Mantis conversion info:
- Mantis ID: 36679
- OS: Windows NT
- OS Build: 10
- Build: 62608
- Platform: X86_64
- Version: 2.1 (SVN)
- Fixed in version: 2.0.8
- Fixed in revision: r62787 (#4ff199e1)
- Target version: 2.0.8