[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] Bug in msgfmt/msgunfmt
From: |
Bruno Haible |
Subject: |
Re: [bug-gettext] Bug in msgfmt/msgunfmt |
Date: |
Thu, 28 Mar 2019 21:18:41 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) |
Shamil Kerimov wrote:
> When trying to create *.mo file from it, I get a warning message about
> missing encoding in header, but *.mo file is created successfully. When
> trying to unpack it, 'invalid multibyte sequence' error appears.
You really should use the -c / --check option of msgfmt. Then the warning
becomes a fatal error:
$ msgfmt -c blueprints.po
blueprints.po: warning: Charset missing in header.
Message conversion to user's charset will not work.
msgfmt: blueprints.po: warning: PO file header missing or invalid
warning: charset conversion will not work
msgfmt: found 1 fatal error
Bruno