Hello.

There is a long discussion about .mo file endianness in this Debian bug report:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671257

As a result, I applied the attached patch to the Debian package, which
makes our work a lot easier, specially for multiarch.

I wonder if it would be possible to have some sort of option which I
can pass to ./configure to achieve this behaviour so that modifying
msgfmt.c directly was not needed.

Thanks.
From: Santiago Vila <[email protected]>
Subject: Modified msgfmt to always create little endian .mo files
Bug-Debian: http://bugs.debian.org/671257
X-Debian-version: 0.18.1.1-8

--- a/gettext-tools/src/msgfmt.c
+++ b/gettext-tools/src/msgfmt.c
@@ -233,6 +233,9 @@
   /* Set default value for global variables.  */
   alignment = DEFAULT_OUTPUT_ALIGNMENT;
 
+  /* Changed by Debian: Default is little-endian, not native */
+  byteswap = ENDIANNESS;
+
   /* Set program name for messages.  */
   set_program_name (argv[0]);
   error_print_progname = maybe_print_progname;

Reply via email to