Dominique wrote:
> I just got a macOS M1 laptop for work. First thing I did, was
> was of course to compile the latest Vim from git (8.2.4815).
> I noticed a test failure:
>
> $ cd vim/src/testdir
> $ make test_environ
> rm -f test_environ.res test.log messages
> VIMRUNTIME=../../runtime ../vim -f -u unix.vim -U NONE --noplugin
> --not-a-term -S runtest.vim test_environ.vim --cmd 'au SwapExists *
> let v:swapchoice = "e"' | LC_ALL=C LANG=C LANGUAGE=C awk '/Executing
> Test_/{match($0, "Executing Test_[^\\)]*\\)"); print substr($0,
> RSTART, RLENGTH) "\r"; fflush()}'
> Executing Test_environ()
> Executing Test_external_env()
> Executing Test_getenv()
> Executing Test_mac_locale()
> Executing Test_setenv()
> Executing Test_special_env()
>
>
> >From test_environ.vim:
> Executed Test_environ() in 0.001717 seconds
> Executed Test_external_env() in 0.092557 seconds
> Executed Test_getenv() in 0.000727 seconds
> Executed Test_mac_locale() in 0.135780 seconds
> Executed Test_setenv() in 0.000656 seconds
> Executed Test_special_env() in 0.000664 seconds
> Executed 6 tests in 0.260058 seconds
> 1 FAILED:
> Found errors in Test_mac_locale():
> command line..script
> /Users/dope/sb/vim/src/testdir/runtest.vim[459]..function
> RunTheTest[44]..Test_mac_locale line 14: Default locale should have
> UTF-8 encoding set, and LC_NUMERIC set to 'C': Pattern
> '"\\([a-zA-Z_]\\+\\.UTF-8/\\)\\{3}C\\(/[a-zA-Z_]\\+\\.UTF-8\\)\\{2}"'
> does not match 'Current language:
> "en_US.UTF-8/UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8"\n'
> make: *** [Makefile:66: test_environ] Error 1
I wonder what this test is actually testing. And how it is relevant for
running Vim.
> The "locale" command outputs:
What matters is what the ":lang" command in Vim prints. It may be
different, because Vim adjusts some things on startup. This uses the
system function setlocale(what, NULL). On linux the output contains
semicolons, it appears Mac OS does something different (it's based on
BSD).
I haven't tried finding out where the test came from, I think it must
have been there for years.
--
Never overestimate a man's ability to underestimate a woman.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220424105118.1E8A61C43E7%40moolenaar.net.