Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,108
    • Issues 2,108
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #36679
Closed
Open
Issue created Feb 07, 2020 by FPC Admin account@fpc_adminOwner

Lazarus detects file with a long, first line as "binary"

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
Assignee
Assign to
Time tracking