bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] Debian Bug#872869: msgfmt: trailing null bytes in head


From: Bruno Haible
Subject: Re: [bug-gettext] Debian Bug#872869: msgfmt: trailing null bytes in header's msgstr
Date: Tue, 22 Aug 2017 02:31:04 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-91-generic; KDE/5.18.0; x86_64; ; )

Hi Santiago,

> One of them is that now glibc does not build because the gettext tests
> still expect the POT-Creation-Date header to be there.
> This has been reported here:
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=21508

We're discussing this at <https://savannah.gnu.org/bugs/?49654>.

> Date: Mon, 21 Aug 2017 22:44:19 +0200
> From: Jakub Wilk <address@hidden>
> To: address@hidden
> Subject: Bug#872869: msgfmt: trailing null bytes in header's msgstr
> User-Agent: NeoMutt/20170609 (1.8.3)
> 
> Package: gettext
> Version: 0.19.8.1-3
> Control: affects -1 + i18nspector
> 
> The upstream commmit d13f165b8370 updates the header message msgstr, but it
> keeps the original msgstr_len ("the number of bytes in msgstr, including the
> terminating NUL"). As consequence, in the generated MO file there's a bunch of
> null bytes at the end of the msgstr.
> 
> I guess this does not matter for gettext-runtime, but it makes i18nspector
> (and maybe other strict MO parsers) upset:
> 
>   $ msgunfmt /usr/share/locale/pl/LC_MESSAGES/gettext-runtime.mo | msgfmt -
>   $ i18nspector messages.mo
>   E: messages.mo: invalid-mo-file unexpected null byte in msgstr

Thanks for this report! Fixed through
http://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=2bad4d89684303fe884410ab0ae53770df6a6093

Bruno




reply via email to

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