]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Warn about $"...".
authorBruno Haible <bruno@clisp.org>
Mon, 6 Oct 2003 10:42:15 +0000 (10:42 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:02 +0000 (12:11 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/x-sh.c

index 01f8b5f7dcfed23b4f6936608d982155da4d6e02..c176966804b83c302adef1d90ce2132d508417cd 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-22  Bruno Haible  <bruno@clisp.org>
+
+       * x-sh.c (read_word): Warn about $"...".
+
 2003-09-18  Bruno Haible  <bruno@clisp.org>
 
        * gettext-po.h (po_file_domain_header, po_header_field,
index be721f62e0833a3b46bc9b073ff11b13b76212cb..16d26ab7d4ad40516854b384042fa56b9416df9b 100644 (file)
@@ -988,6 +988,12 @@ read_word (struct word *wp, int looking_for)
                }
              remember_a_message (mlp, string_of_token (&string), &pos);
              free_token (&string);
+
+             error_with_progname = false;
+             error (0, 0, _("%s:%d: warning: the syntax $\"...\" is deprecated due to security reasons; use eval_gettext instead"),
+                    pos.file_name, pos.line_number);
+             error_with_progname = true;
+
              /* The result at runtime is not constant. Therefore we
                 change wp->type.  */
            }