Raphaël <[email protected]> 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

Reply via email to