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
Touch seeded packages, which is subscribed to file in Ubuntu.
https://bugs.launchpad.net/bugs/2079979

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

Status in file package in Ubuntu:
  New

Bug description:
  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.

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to