[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: |
Wed, 06 Sep 2017 03:06:42 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-93-generic; KDE/5.18.0; x86_64; ; ) |
Hi Daiki,
> >> $ 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
> Although it was reported against an unreleased version, can we have a
> test case for this to prevent similar issue happening in the future?
Good point. I missed this.
But instead of a test that checks against this mistake in a special
test case (by use of 'msgunfmt'), wouldn't it be better to check against it
always, by adding code to 'msgfmt'?
Bruno