[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] msguniq fails on a duplicate empty msgid
From: |
Daiki Ueno |
Subject: |
Re: [bug-gettext] msguniq fails on a duplicate empty msgid |
Date: |
Tue, 12 Mar 2013 11:30:38 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Raphaël <address@hidden> writes:
>> /tmp/a.po: warning: Charset missing in header.
>> Message conversion to user's charset will not work.
>> /tmp/a.po:13: duplicate message definition...
>> /tmp/a.po:2: ...this is the location of the first definition
>> msguniq: found 1 fatal error
>
> IHMO this is a bug.
> If you remove or comment empty msgid and msgstr of "Y", then msguniq
> will succeed.
Although the error message is not too intuitive, I suppose it is an
intended behavior that msguniq treats the empty msgid specially.
read-catalog.c:358:
if (this->allow_duplicates && msgid[0] != '\0')
/* Doesn't matter if this message ID has been seen before. */
mp = NULL;
(As you know, the empty msgid is kind of reserved for PO file headers.)
Regards,
--
Daiki Ueno