vim-patch:8.2.4155: translating strftime() argument results in check error

Problem:    Translating strftime() argument results in check error.
Solution:   Add gettext comment.

7e93577a95

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2022-11-25 11:34:59 +08:00
parent e2a8ea76ea
commit c2a9c64d23

View File

@@ -188,6 +188,7 @@ char *os_ctime_r(const time_t *restrict clock, char *restrict result, size_t res
if (clock_local_ptr == NULL) { if (clock_local_ptr == NULL) {
xstrlcpy(result, _("(Invalid)"), result_len); xstrlcpy(result, _("(Invalid)"), result_len);
} else { } else {
// xgettext:no-c-format
strftime(result, result_len, _("%a %b %d %H:%M:%S %Y"), clock_local_ptr); strftime(result, result_len, _("%a %b %d %H:%M:%S %Y"), clock_local_ptr);
} }
xstrlcat(result, "\n", result_len); xstrlcat(result, "\n", result_len);