bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Byte order in the GNU mo file format


From: Bruno Haible
Subject: Re: Byte order in the GNU mo file format
Date: Sat, 21 Dec 2024 15:54:05 +0100

Hi,

Vivien Kraus wrote:
> In order to parse MO files, my interpretation is that I should look at
> the 4-byte magic cookie. If it is [de 12 04 95], then I should read
> every 4-byte number (offset or string length) as little-endian, and if
> it is [95 04 12 de], then I should read every 4-byte number as big-
> endian.
> 
> Do I understand this correctly?

Your understanding is correct.

But for what purpose do you need this info? If you are trying to support
a particular programming language, note that GNU gettext already supports
a number of them [1], and support for other programming languages may be
added [2].

Bruno

[1] 
https://www.gnu.org/software/gettext/manual/html_node/List-of-Programming-Languages.html
[2] 
https://www.gnu.org/software/gettext/manual/html_node/Language-Implementors.html






reply via email to

[Prev in Thread] Current Thread [Next in Thread]