]> granicus.if.org Git - vim/commitdiff
patch 8.1.2398: strptime() test fails on Japanese Mac v8.1.2398
authorBram Moolenaar <Bram@vim.org>
Fri, 6 Dec 2019 11:45:01 +0000 (12:45 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 6 Dec 2019 11:45:01 +0000 (12:45 +0100)
Problem:    strptime() test fails on Japanese Mac.
Solution:   Use %T instead of %X.

src/testdir/test_functions.vim
src/version.c

index 7284787834473508d9e51373256646a4bc38d3ad..6c4e81369dff878b5ef823056bf42aaa1637c958 100644 (file)
@@ -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:')
index f65803944a7602adf6b05f91f93edfa74cca837f..0cb4bddff1048f54b37d8cb62a8a8a1cf4573e04 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2398,
 /**/
     2397,
 /**/