Public bug reported:

The utility 'file' reports different mime-types depending on the content
length of a text file with just multiple times 'X' as content.

For a file with 5789792 times the letter 'X' as content the 'file' tool returns 
'application/SIMH-tape-data' as mime-type.
With just 1 letter less (5789791) the tool return 'text/plain' as mime-type, 
which imho is the correct result.


file is version 'file-5.45' on Ubuntu 24.04.

** Affects: file (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "test text file which file retruns a improper mime-type"
   
https://bugs.launchpad.net/bugs/2079979/+attachment/5814779/+files/text_test_file.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2079979

Title:
  'file' reports improper mime type on text  file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/file/+bug/2079979/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to