changeset 27253:da5b8e1405c6 v8.2.4155

patch 8.2.4155: translating strftime() argument results in check error Commit: https://github.com/vim/vim/commit/7e93577a957e4f402bb690c4c8629fd831e24a9d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 20 14:25:57 2022 +0000 patch 8.2.4155: translating strftime() argument results in check error Problem: Translating strftime() argument results in check error. Solution: Add gettext comment.
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Jan 2022 15:30:05 +0100
parents d3d184c72683
children fb1f1e80407e
files src/time.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/time.c
+++ b/src/time.c
@@ -93,6 +93,7 @@ get_ctime(time_t thetime, int add_newlin
 	vim_strncpy((char_u *)buf, (char_u *)_("(Invalid)"), sizeof(buf) - 1);
     else
     {
+	// xgettext:no-c-format
 	(void)strftime(buf, sizeof(buf) - 1, _("%a %b %d %H:%M:%S %Y"),
 								    curtime);
 # ifdef MSWIN
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4155,
+/**/
     4154,
 /**/
     4153,