+ _("Invalid length (%" APR_UINT64_T_FMT ") "从而造成 xgettext 错误:
+ "when about to read a string"), len);
#: ../libsvn_repos/reporter.c:168但是又不能简单的使用“llu”来替换“APR_UINT64_T_FMT”,因为在 64bit 中不支持“llu”。所以只能使用折中方案:
msgid "Invalid length (%"
msgstr ""
--- subversion/libsvn_repos
+++ subversion/libsvn_repos
@@ -155,6 +155,7 @@
{
apr_uint64_t len;
char *buf;
+ char *fmt;
SVN_ERR(read_number(&len, temp, pool));
@@ -164,9 +165,10 @@
string, anyone?) but let's be future-proof anyway. */
if (len + 1 < len)
{
+ fmt = apr_psprintf(pool, _("Invalid length (%%%s) when about to read "
+ "a string"), APR_UINT64_T_FMT);
return svn_error_createf(SVN_ERR
- _("Invalid length (%" APR_UINT64_T_FMT ") "
-
}
buf = apr_palloc(pool, len + 1);
没有评论:
发表评论