From: Bruno Haible Date: Thu, 3 May 2012 09:54:35 +0000 (+0200) Subject: Document msgfmt option --endianness. X-Git-Tag: v0.18.2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c2ca89624b1d867fd072a34b2a298fc08a16a0d;p=thirdparty%2Fgettext.git Document msgfmt option --endianness. --- diff --git a/gettext-tools/doc/ChangeLog b/gettext-tools/doc/ChangeLog index 8cfa78d39..d8a0f1287 100644 --- a/gettext-tools/doc/ChangeLog +++ b/gettext-tools/doc/ChangeLog @@ -1,3 +1,10 @@ +2012-05-03 Bruno Haible + + Document msgfmt option --endianness. + * msgfmt.texi: Document the option --endianness. + Reported by Paul Martin via + Santiago Vila . + 2012-01-26 Bruno Haible Modernize quoting. diff --git a/gettext-tools/doc/msgfmt.texi b/gettext-tools/doc/msgfmt.texi index 2067f93d7..c9dc40dcc 100644 --- a/gettext-tools/doc/msgfmt.texi +++ b/gettext-tools/doc/msgfmt.texi @@ -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 diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 775e33d6c..4ebe9efbd 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,10 @@ +2012-05-03 Bruno Haible + + Document msgfmt option --endianness. + * msgfmt.c (usage): Document the option --endianness. + Reported by Paul Martin via + Santiago Vila . + 2012-01-26 Bruno Haible Modernize quoting. diff --git a/gettext-tools/src/msgfmt.c b/gettext-tools/src/msgfmt.c index 0a5956ead..4da999a50 100644 --- a/gettext-tools/src/msgfmt.c +++ b/gettext-tools/src/msgfmt.c @@ -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 (_("\