On Windows 10 a plain text buffer is classified as application/octet-stream which is indicative of a binary file (I think). Ubuntu Linux is correctly identifying as "text/plain".
Python3.9, python-magic-bin as the driver for magiclib
How to reproduce
content = "Bunch of fake content" * 8192
magic = Magic(mime=True)
mimetype = magic.from_buffer(content[0:8192]) # Index to replicate my environment
On Windows 10 a plain text buffer is classified as application/octet-stream which is indicative of a binary file (I think). Ubuntu Linux is correctly identifying as "text/plain".
Python3.9, python-magic-bin as the driver for magiclib
How to reproduce