[File] file 5.40 breaks subversion tests

Dr. Werner Fink werner at suse.de
Tue Apr 20 09:42:15 UTC 2021


Hi,

looks like file does not detect e.g. ASCII text without newlines anymore

From outside of a build system with file 5.39

 /suse/werner> file /abuild/oscbuild/openSUSE_Tumbleweed/dev/shm/svn-test-work/working_copies/commit_tests-9/A/D/bloo
 /abuild/oscbuild/openSUSE_Tumbleweed/dev/shm/svn-test-work/working_copies/commit_tests-9/A/D/bloo: ASCII text, with no line terminators

from within the build system with file 5.40

 abuild at noether:~/rpmbuild/BUILD/subversion-1.14.1/subversion/tests/cmdline> file svn-test-work/working_copies/commit_tests-7/A/B/E/bloo
svn-test-work/working_copies/commit_tests-7/A/B/E/bloo: data

it is the same file, but different results

 /suse/werner> cat /abuild/oscbuild/openSUSE_Tumbleweed/dev/shm/svn-test-work/working_copies/commit_tests-9/A/D/bloo && echo
 hi

for longer strings it works

 abuild at noether:~/rpmbuild/BUILD/subversion-1.14.1/subversion/tests/cmdline> file svn-test-work/working_copies/commit_tests-56/A/D/H/gloo
 svn-test-work/working_copies/commit_tests-56/A/D/H/gloo: ASCII text, with no line terminators

 abuild at noether:~/rpmbuild/BUILD/subversion-1.14.1/subversion/tests/cmdline> cat svn-test-work/working_copies/commit_tests-56/A/D/H/gloo && echo
 hello

Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 894 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20210420/59624c8b/attachment.asc>


More information about the File mailing list