[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettext .mo files and nullentry
From: |
Joachim Metz |
Subject: |
Re: gettext .mo files and nullentry |
Date: |
Sun, 29 Aug 2010 21:02:31 +0200 |
Bruno,
Thanks for the reply.
> The documentation is already present in
> <http://www.gnu.org/software/gettext/manual/html_node/Header-Entry.html>
Great. I was expecting it in the MO section, perhaps the mo section
could refer to the header entry section?
Do you know what policy is for custom entries?
> True, it does not do this check, but this is not a problem, because these
> markers charset=, plural=, nplurals= make no sense in another other part
> of the header.
Personally I would add the check anyway (especially if someone would
consider adding a custom header ;-), but I'll leave it up to you.
> This too is not a problem, because
> 1. the computations are done with 'unsigned long', which wraps around
> mod 2^32 or 2^64 upon overflow (no abort()),
> 2. nothing bad happens if the plural formula and nplurals value have
> definitions which make no sense (e.g. "plural=(n+100000000000000)").
Personally I don't think an integer wrap around is preferred
behaviour; again I leave it up to you.
Kind regards,
Joachim