+2001-03-26 Bruno Haible <haible@clisp.cons.org>
+
+ * xgettext.c (test_whether_c_format): Recognize '%%' as valid.
+ * msgfmt.c (check_pair): In error message, count format
+ specifications starting from 1, not 0.
+
2001-03-25 Bruno Haible <haible@clisp.cons.org>
* xgettext.c (warn_id_len): Remove unused variable.
error_at_line (0, 0, msgid_pos->file_name,
msgid_pos->line_number, _("\
format specifications for argument %lu are not the same"),
- (unsigned long) cnt);
+ (unsigned long) (cnt + 1));
exit_status = EXIT_FAILURE;
}
}
size_t dummy;
(void) parse_one_spec (s, 0, &spec, &dummy);
- if (strchr ("iduoxXeEfgGcspnm", spec.info.spec) == NULL)
+ if (strchr ("iduoxXeEfgGcspnm%", spec.info.spec) == NULL)
return impossible;
}