View Issue Details

IDProjectCategoryView StatusLast Update
0000359fileGeneralpublic2022-07-04 20:08
Reporterdarose Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
OSLinuxOS Version5.18.3 
Product Version5.42 
Fixed in Version5.43 
Summary0000359: v5.42 not correctly identifying JSON Lines files
Descriptionv5.41 would correctly identify a JSON Lines file (see https://jsonlines.org/ and http://ndjson.org/) as json. v5.42 now only identifies it as ascii text.

(This is breaking functionality in a project of mine which requires the ability to detect json files.)
Steps To Reproduce1. Upgrade "file" to v5.42
2. Run "file" on a valid JSON Lines file.
3. "file" will not identify it as json; only ascii text.
Additional InformationSee the following output for an example:

$ cat /tmp/test.json
{}
{}

$ pacman -Q file
file 5.41-1

$ file /tmp/test.json
/tmp/test.json: JSON data

$ sudo pacman -S file
...
Packages (1) file-5.42-1
...

$ pacman -Q file
file 5.42-1

$ file /tmp/test.json
/tmp/test.json: ASCII text
TagsNo tags attached.

Activities

christos

2022-07-04 20:08

manager   ~0003781

Added, thanks!

Issue History

Date Modified Username Field Change
2022-06-14 17:02 darose New Issue
2022-07-04 20:08 christos Assigned To => christos
2022-07-04 20:08 christos Status new => assigned
2022-07-04 20:08 christos Status assigned => resolved
2022-07-04 20:08 christos Resolution open => fixed
2022-07-04 20:08 christos Fixed in Version => 5.43
2022-07-04 20:08 christos Note Added: 0003781