[File] Big endianess problem on s390x?

Guy Harris gharris at sonic.net
Tue May 19 16:01:39 EDT 2026


On May 19, 2026, at 12:54 PM, Guy Harris <gharris at sonic.net> wrote:

> 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.

Although, at least according to the Wikipedia page:

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

"The byte-ordering differences of variant 2 are applicable in binary storage or transmission on the wire, and do not affect the textual presentation of the UUID."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.astron.com/pipermail/file/attachments/20260519/0cc6426c/attachment.htm>


More information about the File mailing list