changeset 31930:e3ab1d0f2ef9 v9.0.1297

patch 9.0.1297: wrong value for $LC_CTYPE makes the environ test fail Commit: https://github.com/vim/vim/commit/962d91643520ec3748fcf5af3263d89ccfcdda92 Author: WuerfelDev <dev@wuerfeldev.de> Date: Fri Feb 10 20:49:08 2023 +0000 patch 9.0.1297: wrong value for $LC_CTYPE makes the environ test fail Problem: Wrong value for $LC_CTYPE makes the environ test fail. Solution: Unset $LC_CTYPE when running tests. (closes https://github.com/vim/vim/issues/11963)
author Bram Moolenaar <Bram@vim.org>
date Fri, 10 Feb 2023 22:00:03 +0100
parents 23759178127e
children 96ac3ba1fc35
files src/testdir/test_environ.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_environ.vim
+++ b/src/testdir/test_environ.vim
@@ -73,7 +73,7 @@ func Test_mac_locale()
   " If $LANG is not set then the system locale will be used.
   " Run Vim after unsetting all the locale environmental vars, and capture the
   " output of :lang.
-  let lang_results = system("unset LANG; unset LC_MESSAGES; " ..
+  let lang_results = system("unset LANG; unset LC_MESSAGES; unset LC_CTYPE; " ..
             \ shellescape(v:progpath) ..
             \ " --clean -esX -c 'redir @a' -c 'lang' -c 'put a' -c 'print' -c 'qa!' ")
 
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1297,
+/**/
     1296,
 /**/
     1295,