+2001-07-11 Bruno Haible <haible@clisp.cons.org>
+
+ * xgettext.c (test_whether_c_format): When encountering an
+ unterminated % format specifier, return 'impossible'.
+ Reported by Gaute B Strokkenes <gs234@cam.ac.uk>.
+
2001-07-09 Bruno Haible <haible@clisp.cons.org>
* write-po.c (has_nonascii): New function.
size_t dummy;
(void) parse_one_spec (s, 0, &spec, &dummy);
- if (strchr ("iduoxXeEfgGcspnm%", spec.info.spec) == NULL)
+ if (spec.info.spec == '\0'
+ || strchr ("iduoxXeEfgGcspnm%", spec.info.spec) == NULL)
return impossible;
}