[File] Rise RP/749 ... strange libmagic behaviour with bytes
Dr. Werner Fink
werner at suse.de
Tue Mar 31 12:50:55 UTC 2026
Currently both the python magic from file-5.47 and python-magic-0.4.27 report
```
AssertionError: 'PDF document, version %.%, 2 page(s)' != 'PDF document, version 1.2, 2 page(s)'
- PDF document, version %.%, 2 page(s)
? ^ ^
+ PDF document, version 1.2, 2 page(s)
? ^ ^
```
resp.
```
test/libmagic_test.py:23: in assert_result
self.assertIn(result.name, self.expected_name)
E AssertionError: 'PDF document, version %.%, 2 page(s)' not found in ('PDF document, version 1.2', 'PDF document, version 1.2, 2 pages', 'PDF document, version 1.2, 2 page(s)')
```
--
"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/20260331/7f818e52/attachment.asc>
More information about the File
mailing list