View Issue Details

IDProjectCategoryView StatusLast Update
0000174file[All Projects] Generalpublic2020-08-09 16:43
ReporterpetreAssigned Tochristos 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.39 
Target VersionFixed in Version5.40 
Summary0000174: CSV files identified as "application/csv" instead of registered "text/csv"
DescriptionThe new CSV file identification is returning "application/csv".
According to RFC 4180, the registered mime type is 'text/csv'.
"application/csv" is not registered at all, see https://www.iana.org/assignments/media-types/media-types.xhtml

If there is no valid reason to use "application/csv", that I'm not aware of, could this be updated, please?
Steps To Reproduce(via python-magic)

>>> import magic
>>> magic.from_buffer("a,b,c\nd,e,f\ng,h,i\n", mime=True)
'application/csv'
Additional InformationRelevant code location: https://github.com/file/file/blob/FILE5_39/src/is_csv.c#L153
TagsNo tags attached.

Activities

christos

2020-08-09 16:43

manager   ~0003442

Thanks, fixed!

Issue History

Date Modified Username Field Change
2020-08-03 12:41 petre New Issue
2020-08-09 16:43 christos Assigned To => christos
2020-08-09 16:43 christos Status new => assigned
2020-08-09 16:43 christos Status assigned => resolved
2020-08-09 16:43 christos Resolution open => fixed
2020-08-09 16:43 christos Fixed in Version => 5.40
2020-08-09 16:43 christos Note Added: 0003442