View Issue Details

IDProjectCategoryView StatusLast Update
0000642fileGeneralpublic2025-05-30 13:36
ReporterAlbrecht Assigned Tochristos  
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSDebianOS VersionTrixie (testing)
Product Version5.46 
Fixed in VersionHEAD 
Summary0000642: Source code and scripts w/ Doxygen comments classified as HTML
DescriptionSome 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 ReproduceSee above.
Additional InformationFeel free to add my samples to your test cases…
TagsNo tags attached.

Activities

Albrecht

2025-04-11 09:59

reporter  

samples.zip (713 bytes)

christos

2025-05-30 13:36

manager   ~0004254

Bumped so that c beats html again.

Issue History

Date Modified Username Field Change
2025-04-11 09:59 Albrecht New Issue
2025-04-11 09:59 Albrecht File Added: samples.zip
2025-05-30 13:36 christos Assigned To => christos
2025-05-30 13:36 christos Status new => assigned
2025-05-30 13:36 christos Status assigned => resolved
2025-05-30 13:36 christos Resolution open => fixed
2025-05-30 13:36 christos Fixed in Version => HEAD
2025-05-30 13:36 christos Note Added: 0004254