changeset 18821:a9cfb0db187d v8.1.2398

patch 8.1.2398: strptime() test fails on Japanese Mac Commit: https://github.com/vim/vim/commit/9a838fe543b69582b0773f7c38a57f16fb32d765 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 6 12:45:01 2019 +0100 patch 8.1.2398: strptime() test fails on Japanese Mac Problem: strptime() test fails on Japanese Mac. Solution: Use %T instead of %X.
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 Dec 2019 13:00:04 +0100
parents 2a9a47bf5540
children 671d8678b0e7
files src/testdir/test_functions.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -231,7 +231,7 @@ func Test_strptime()
   endif
   let $TZ = 'UTC'
 
-  call assert_equal(1484653763, strptime('%Y-%m-%d %X', '2017-01-17 11:49:23'))
+  call assert_equal(1484653763, strptime('%Y-%m-%d %T', '2017-01-17 11:49:23'))
 
   call assert_fails('call strptime()', 'E119:')
   call assert_fails('call strptime("xxx")', 'E119:')
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2398,
+/**/
     2397,
 /**/
     2396,