+2002-03-02 Bruno Haible <bruno@clisp.org>
+
+ * msgfmt.c (check_pair): Don't count "&&" as an accelerator designator,
+ for consistency with Qt and KDE.
+
2002-02-24 Bruno Haible <bruno@clisp.org>
* po-lex.c: Include libstdarg.h.
p = strchr (msgid, accelerator_char);
if (p != NULL && strchr (p + 1, accelerator_char) == NULL)
{
- /* Count the number of '&' in msgstr. */
+ /* Count the number of '&' in msgstr, but ignore '&&'. */
unsigned int count = 0;
for (p = msgstr; (p = strchr (p, accelerator_char)) != NULL; p++)
- count++;
+ if (p[1] == accelerator_char)
+ p++;
+ else
+ count++;
if (count == 0)
{