From: Bruno Haible Date: Mon, 6 Oct 2003 10:42:15 +0000 (+0000) Subject: Warn about $"...". X-Git-Tag: v0.13~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09a9fa40f522b79f69d7b47464222d7e5043720f;p=thirdparty%2Fgettext.git Warn about $"...". --- diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 01f8b5f7d..c17696680 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,7 @@ +2003-09-22 Bruno Haible + + * x-sh.c (read_word): Warn about $"...". + 2003-09-18 Bruno Haible * gettext-po.h (po_file_domain_header, po_header_field, diff --git a/gettext-tools/src/x-sh.c b/gettext-tools/src/x-sh.c index be721f62e..16d26ab7d 100644 --- a/gettext-tools/src/x-sh.c +++ b/gettext-tools/src/x-sh.c @@ -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. */ }