View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000454 | file | General | public | 2023-05-24 15:14 | 2023-06-16 19:58 |
Reporter | Albrecht | Assigned To | christos | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | x86_64 | OS | Debian | OS Version | Bookworm |
Product Version | 5.44 | ||||
Fixed in Version | 5.45 | ||||
Summary | 0000454: C source file classified as HTML | ||||
Description | Some of my C source files (like the attached sample) are classified as /tmp/sample.c: HTML document, Unicode text, UTF-8 text if any comment contains Doxygen HTML-style links (see https://www.doxygen.nl/manual/autolink.html#linkurl). Removing the 5th line containing the link produces the expected result /tmp/sample.c: C source, Unicode text, UTF-8 text This is a little ugly as Doxygen is widely used for code documentation, and supports a variety of HTML commands to pimp up the output (see https://www.doxygen.nl/manual/htmlcmds.html). I didn't check if any other HTML tag command produces the same effect, though. | ||||
Steps To Reproduce | See above - just run file v. 5.44 or the latest Git version on the attached sample. Note that file 5.39 coming with Debian Bullseye correctly returns /tmp/sample.c: C source, UTF-8 Unicode text | ||||
Tags | No tags attached. | ||||
|
sample.c (328 bytes)
/** \file * \brief Sample Hello World * \author Albrecht Dreß <albrecht.dress@posteo.de> * \copyright Copyright © 2023 * \note See \em file <a href="https://bugs.astron.com/view.php?id=4711">issue 4711</a> for details. */ #include <stdio.h> int main(int argc, char **argv) { printf("hello, file\n"); return argc; } |
|
Fixed, by bumping strength. |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-05-24 15:14 | Albrecht | New Issue | |
2023-05-24 15:14 | Albrecht | File Added: sample.c | |
2023-06-16 19:57 | christos | Assigned To | => christos |
2023-06-16 19:57 | christos | Status | new => assigned |
2023-06-16 19:58 | christos | Status | assigned => resolved |
2023-06-16 19:58 | christos | Resolution | open => fixed |
2023-06-16 19:58 | christos | Fixed in Version | => 5.45 |
2023-06-16 19:58 | christos | Note Added: 0003950 |