[File] Big endianess problem on s390x?

Guy Harris gharris at sonic.net
Tue May 19 15:54:55 EDT 2026


On May 18, 2026, at 8:15 AM, Christos Zoulas <christos at zoulas.com> wrote:

> Is this after the most recent change that includes byte swapping?

Looking at the tip of the main branch in https://github.com/file/file.git, it appears that there are data item types "beguid", "leguid", and "guid", with "guid" being equivalent to "leguid". The only difference between them appears to be how they're printed, i.e. how they're converted from binary format to text format; that would suggest that it should affect how they're *parsed* in magic files, i.e. how they're converted from text format to binary format, as well.

UUIDs:

	https://en.wikipedia.org/wiki/Universally_unique_identifier

have multiple different formats, with the format deducible from the value of the UUID:

	https://en.wikipedia.org/wiki/Universally_unique_identifier#Encoding

The formats do *not* all use the same byte ordering.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.astron.com/pipermail/file/attachments/20260519/2f5ba734/attachment.htm>


More information about the File mailing list