From: Bruno Haible Date: Mon, 19 Nov 2001 11:04:21 +0000 (+0000) Subject: Let msgfmt signal an error for duplicates, even if the translation is the same. X-Git-Tag: v0.11~290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6eda5c16b1ab6e87ddd72cd0dc27eb2993f44878;p=thirdparty%2Fgettext.git Let msgfmt signal an error for duplicates, even if the translation is the same. --- diff --git a/src/ChangeLog b/src/ChangeLog index e6f7847e6..f169cf6b9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-11-17 Bruno Haible + + * msgfmt.c (format_directive_message): Finish 2001-08-30 patch. + 2001-11-17 Bruno Haible * msgfmt.c (accelerator_char): New variable. diff --git a/src/msgfmt.c b/src/msgfmt.c index ee143819d..f88adc41a 100644 --- a/src/msgfmt.c +++ b/src/msgfmt.c @@ -1353,14 +1353,10 @@ some header fields still have the initial default value")); msguniq program to get rid of duplicates. */ find_entry (¤t_domain->symbol_tab, msgid_string, strlen (msgid_string) + 1, (void **) &entry); - if (msgstr_len != entry->msgstr_len - || memcmp (msgstr_string, entry->msgstr, msgstr_len) != 0) - { - po_gram_error_at_line (msgid_pos, _("\ + po_gram_error_at_line (msgid_pos, _("\ duplicate message definition")); - po_gram_error_at_line (&entry->pos, _("\ + po_gram_error_at_line (&entry->pos, _("\ ...this is the location of the first definition")); - } /* We don't need the just constructed entries' parameter string (allocated in po-gram.y). */