This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 48221 - warning pops up about a text file being binary
Summary: warning pops up about a text file being binary
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: David Konecny
Depends on:
Reported: 2004-08-31 11:27 UTC by Patrick Keegan
Modified: 2008-12-22 17:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

file that IDE thinks is binary (83.49 KB, text/plain)
2004-08-31 11:28 UTC, Patrick Keegan

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Keegan 2004-08-31 11:27:14 UTC
When opening up some JavaHelp metadata, a warning
pops up saying that the file might be binary when
it fairly clearly is not.
Comment 1 Patrick Keegan 2004-08-31 11:28:24 UTC
Created attachment 17239 [details]
file that  IDE thinks is binary
Comment 2 Petr Nejedly 2004-09-01 15:51:06 UTC
The heuristic for recognizing binary file is implemented in

The problematic character is the copyright sign, but the heuristic is
probably meant to accept it.

The problem is the test at line 184: "arr[i] < 9", which is true for
character codes 0-8 but also for characters above 128 (like (c)).
I thing the intention was to accept everything above code 8.

reassigning to DS and also ccing Yarda (after using blametool on the
source file ;-)
Comment 3 David Konecny 2004-09-02 10:57:46 UTC
Fixed in:
new revision: 1.4; previous revision: 1.3
new revision: 1.3; previous revision: 1.2
Comment 4 Marian Mirilovic 2005-12-20 15:50:52 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.