View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000642 | file | General | public | 2025-04-11 09:59 | 2025-04-11 09:59 |
Reporter | Albrecht | Assigned To | |||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | x86_64 | OS | Debian | OS Version | Trixie (testing) |
Product Version | 5.46 | ||||
Summary | 0000642: Source code and scripts w/ Doxygen comments classified as HTML | ||||
Description | Some C source and script files are wrongly classified ad HTML if then contain Doxygen comments (note that this seems to be a similar issue as https://bugs.astron.com/view.php?id=454 for version 5.44 on Debian Bookworm). Using the two files extracted from the attached zip, and running the latest Git master branch, compiled on Debian Trixie, I get (sample.c is actually the one from issue 454) <snip> albrecht@ad-trixie:~/file-master$ ./src/file -m magic/magic.mgc sample.* sample.c: HTML document, Unicode text, UTF-8 text sample.py: HTML document, ASCII text albrecht@ad-trixie:~/file-master$ ./src/file -m magic/magic.mgc --mime sample.* sample.c: text/html; charset=utf-8 sample.py: text/html; charset=us-ascii </snip> | ||||
Steps To Reproduce | See above. | ||||
Additional Information | Feel free to add my samples to your test cases… | ||||
Tags | No tags attached. | ||||