]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix a dumb file:line display during warnings inside write-po.c.
authorBruno Haible <bruno@clisp.org>
Tue, 8 Aug 2006 11:31:48 +0000 (11:31 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:53 +0000 (12:13 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/xgettext.c

index ac435a5b007114992b0f273ecb3896d956dd8af1..2486d2004954828360c0b473825a4baf44d6fe66 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-07  Bruno Haible  <bruno@clisp.org>
+
+       * xgettext.c (remember_a_message): Use the position passed as argument
+       instead of a dummypos.
+       Reported by Paul Eggert <eggert@cs.ucla.edu>.
+
 2006-08-01  Bruno Haible  <bruno@clisp.org>
 
        Fix behaviour of msgmerge when the PO file and the compendium are
index 7c0e29832d086ae7c9e7a4c79e06da55b1d03316..aaabe8c49beb429d39caa6e8af6a604c2844df30 100644 (file)
@@ -2035,8 +2035,6 @@ meta information, not the empty string.\n")));
     }
   else
     {
-      static lex_pos_ty dummypos = { __FILE__, __LINE__ };
-
       /* Construct the msgstr from the prefix and suffix, otherwise use the
         empty string.  */
       if (msgstr_prefix)
@@ -2046,7 +2044,7 @@ meta information, not the empty string.\n")));
 
       /* Allocate a new message and append the message to the list.  */
       mp = message_alloc (msgctxt, msgid, NULL, msgstr, strlen (msgstr) + 1,
-                         &dummypos);
+                         pos);
       /* Do not free msgctxt and msgid.  */
       message_list_append (mlp, mp);
     }