Here is a literal example attached — the README from turbo assembler
The very last character is ^Z (or ASCII 26 or 0x1A)

As it is, file says data for it
Remove that char and file recognizes it alright

# With ^Z at EOF
$ file README 
README: data
$

With ^Z removed
$ file README 
README: ASCII text, with CRLF line terminators
$ 


PS At first I thought to file the bug upstream but that takes me to a 1987(!!) 
webpage:
https://www.darwinsys.com/file/ 

** Attachment added: "README"
   
https://bugs.launchpad.net/ubuntu/+source/file/+bug/2122399/+attachment/5908034/+files/README

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

Title:
  file doesnt recognize MSDOS text files

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


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

Reply via email to