]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Let msgfmt signal an error for duplicates, even if the translation is the same.
authorBruno Haible <bruno@clisp.org>
Mon, 19 Nov 2001 11:04:21 +0000 (11:04 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 21:20:56 +0000 (23:20 +0200)
src/ChangeLog
src/msgfmt.c

index e6f7847e63eaa8ba262d5f01ad67f3589b46d49f..f169cf6b96b490ec6896cc9ca1c6402cc819e94a 100644 (file)
@@ -1,3 +1,7 @@
+2001-11-17  Bruno Haible  <haible@clisp.cons.org>
+
+       * msgfmt.c (format_directive_message): Finish 2001-08-30 patch.
+
 2001-11-17  Bruno Haible  <haible@clisp.cons.org>
 
        * msgfmt.c (accelerator_char): New variable.
index ee143819dc519ec6ad9c3e56bdfd61fb272a8893..f88adc41aa0bda68c18ae76f474815430297f940 100644 (file)
@@ -1353,14 +1353,10 @@ some header fields still have the initial default value"));
             msguniq program to get rid of duplicates.  */
          find_entry (&current_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).  */