debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #06923
[Bug 2122399] Re: file doesnt recognize MSDOS text files
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
Debcrafters packages, which is subscribed to file in Ubuntu.
https://bugs.launchpad.net/bugs/2122399
Title:
file doesnt recognize MSDOS text files
Status in file package in Ubuntu:
Incomplete
Bug description:
It was traditional in MS-DOS to end text files in a control-Z (ASCII codepoint 26 or 1A-hex)
However this last character throws off file and it says "data"
Removing it says ASCII text with CRLF line terminators
ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: file 1:5.45-3build1
ProcVersionSignature: Ubuntu 6.14.0-29.29-generic 6.14.8
Uname: Linux 6.14.0-29-generic x86_64
ApportVersion: 2.32.0-0ubuntu5.3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Sep 9 13:41:18 2025
InstallationDate: Installed on 2021-12-22 (1356 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
SourcePackage: file
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/file/+bug/2122399/+subscriptions
References