View Issue Details

IDProjectCategoryView StatusLast Update
0000676fileGeneralpublic2025-07-12 21:45
Reportervinc17 Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version5.46 
Summary0000676: troff file misidentified as C source
DescriptionMan pages (in troff format) containing a C source are misidentified as C source.
Steps To Reproduce$ printf ".TH frexp 3 D L\n.SH E\n.SS S\n.EX\n#include <float.h>\n.EE\n" | file -
/dev/stdin: C source, ASCII text

Without the "#include <float.h>", the issue disappears:
$ printf ".TH frexp 3 D L\n.SH E\n.SS S\n.EX\n.EE\n" | file -
/dev/stdin: troff or preprocessor input, ASCII text
Additional InformationThe above file (output without the "| file -") is

.TH frexp 3 D L
.SH E
.SS S
.EX
#include <float.h>
.EE

I've found this issue with the frexp(3) man page from the Linux man-pages.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-07-12 21:45 vinc17 New Issue