]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Document msgfmt option --endianness.
authorBruno Haible <bruno@clisp.org>
Thu, 3 May 2012 09:54:35 +0000 (11:54 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 3 May 2012 09:54:35 +0000 (11:54 +0200)
gettext-tools/doc/ChangeLog
gettext-tools/doc/msgfmt.texi
gettext-tools/src/ChangeLog
gettext-tools/src/msgfmt.c

index 8cfa78d39c98b36967330f315d6d61eb9ea7f4ad..d8a0f128777d43a5523e94c7f62182b1337b441f 100644 (file)
@@ -1,3 +1,10 @@
+2012-05-03  Bruno Haible  <bruno@clisp.org>
+
+       Document msgfmt option --endianness.
+       * msgfmt.texi: Document the option --endianness.
+       Reported by Paul Martin <pm@debian.org> via
+       Santiago Vila <sanvila@unex.es>.
+
 2012-01-26  Bruno Haible  <bruno@clisp.org>
 
        Modernize quoting.
index 2067f93d70e084911f604bd346d9fcd68a267702..c9dc40dccaeb74f21be33dd90aea6949c98dbf41 100644 (file)
@@ -265,6 +265,19 @@ Align strings to @var{number} bytes (default: 1).
 @c Currently the README mentions that this constant could be changed by
 @c the installer by changing the value in config.h.  Should this go away?
 
+@item --endianness=@var{byteorder}
+@opindex --endianness@r{, @code{msgfmt} option}
+Write out 32-bit numbers in the given byte order.  The possible values are
+@code{big} and @code{little}.  The default depends on the platform, namely
+on the endianness of the CPU.
+
+MO files of any endianness can be used on any platform.  When a MO file has
+an endianness other than the platform's one, the 32-bit numbers from the MO
+file are swapped at runtime.  The performance impact is negligible.
+
+This option can be useful to produce MO files that are independent of the
+platform.
+
 @item --no-hash
 @opindex --no-hash@r{, @code{msgfmt} option}
 Don't include a hash table in the binary file.  Lookup will be more expensive
index 775e33d6c7e0cbad3b9fce033b182c11a612edfe..4ebe9efbd717ec2cf61884b6ae8c41b563915f22 100644 (file)
@@ -1,3 +1,10 @@
+2012-05-03  Bruno Haible  <bruno@clisp.org>
+
+       Document msgfmt option --endianness.
+       * msgfmt.c (usage): Document the option --endianness.
+       Reported by Paul Martin <pm@debian.org> via
+       Santiago Vila <sanvila@unex.es>.
+
 2012-01-26  Bruno Haible  <bruno@clisp.org>
 
        Modernize quoting.
index 0a5956ead58379c4f29ed6fda368b1e78049a9b7..4da999a50a24246679ef33f0b42d1a2695006d39 100644 (file)
@@ -767,6 +767,9 @@ Output details:\n"));
       printf (_("\
   -a, --alignment=NUMBER      align strings to NUMBER bytes (default: %d)\n"), DEFAULT_OUTPUT_ALIGNMENT);
       printf (_("\
+      --endianness=BYTEORDER  write out 32-bit numbers in the given byte order\n\
+                                (big or little, default depends on platform)\n"));
+      printf (_("\
       --no-hash               binary file will not include the hash table\n"));
       printf ("\n");
       printf (_("\