View Issue Details

IDProjectCategoryView StatusLast Update
0000157fileGeneralpublic2020-05-30 23:06
Reportervinc17 Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.38 
Summary0000157: Mis-detection of (perl-pod generated) troff files
Descriptiontroff files generated by Perl's pod2man are misdetected as ReStructuredText files.
Steps To Reproduce$ echo '=head1 NAME' | pod2man | head -n 5 | file -
/dev/stdin: ReStructuredText file, ASCII text

Note about the first 5 lines:

$ echo '=head1 NAME' | pod2man | head -n 5
.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
Additional InformationThe Debian BTS has a similar bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949878

This is a regression: there was no such issue with file 5.35.
TagsNo tags attached.

Activities

christos

2020-05-30 23:06

manager   ~0003412

FIxed with:
RCS file: /p/file/cvsroot/file/magic/Magdir/rst,v
Working file: rst
head: 1.3
branch:
locks: strict
access list:
symbolic names:
        FILE5_38: 1.2
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
----------------------------
revision 1.3
date: 2020-04-26 21:50:36 -0400; author: christos; state: Exp; lines: +2 -2; commitid: KoQSLF01l8toQX5C;
Fix escaping of periods

Issue History

Date Modified Username Field Change
2020-04-19 10:40 vinc17 New Issue
2020-05-30 23:05 christos Assigned To => christos
2020-05-30 23:05 christos Status new => assigned
2020-05-30 23:06 christos Status assigned => resolved
2020-05-30 23:06 christos Resolution open => fixed
2020-05-30 23:06 christos Note Added: 0003412