file -i command reports "text/x-c" mime type for .srt file (Subtitle / Plain Text file)

Bug #1790806 reported by Michael Ruge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
file (Ubuntu)
New
Undecided
Unassigned
hhvm (Ubuntu)
New
Undecided
Unassigned

Bug Description

1. Bug is on Ubuntu 14.04.5 LTS and Ubuntu 16.04.5 LTS

2.
file:
  Installiert: 1:5.25-2ubuntu1.1

file:
  Installiert: 1:5.14-2ubuntu3.4

3.
command: "file -i test_mime.srt"

Actual result: "text/x-c"

Expected result: "text/plain" or "application/x-subrip"

In line 8 of the attached file is the word "extern".
therefore, the file is incorrectly identified as c code

Revision history for this message
Michael Ruge (3qdev) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.