summaryrefslogtreecommitdiffstats
path: root/gettext-tools
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-10-06 10:42:15 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:11:02 +0200
commit09a9fa40f522b79f69d7b47464222d7e5043720f (patch)
treec5088cdd353fef6c17f0203969f15869a22a9c99 /gettext-tools
parent870f6b5b92fafd69eae3ad25b0f23f4f8083b305 (diff)
downloadexternal_gettext-09a9fa40f522b79f69d7b47464222d7e5043720f.zip
external_gettext-09a9fa40f522b79f69d7b47464222d7e5043720f.tar.gz
external_gettext-09a9fa40f522b79f69d7b47464222d7e5043720f.tar.bz2
Warn about $"...".
Diffstat (limited to 'gettext-tools')
-rw-r--r--gettext-tools/src/ChangeLog4
-rw-r--r--gettext-tools/src/x-sh.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog
index 01f8b5f..c176966 100644
--- a/gettext-tools/src/ChangeLog
+++ b/gettext-tools/src/ChangeLog
@@ -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,
diff --git a/gettext-tools/src/x-sh.c b/gettext-tools/src/x-sh.c
index be721f6..16d26ab 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. */
}