On Sun, 24 Apr 2022, Bram Moolenaar wrote:
>
> 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
It looks like the second item from the `:lang` command just contains
`UTF-8` instead of the expected `en_US.UTF-8` Not sure if this is
expected. Is this macvim or plain vim? You may want to check with @ychin
who contributed that test.
>
> 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).
According to the test, it seems to expect / as delimiter.
>
> I haven't tried finding out where the test came from, I think it must
> have been there for years.
This comes from https://github.com/vim/vim/pull/7022
Perhaps we need to check with @ychin
Best,
Christian
--
"The human brain is like an enormous fish -- it is flat and slimy and
has gills through which it can see."
-- Monty Python
--
--
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/20220425072348.GA2572617%40256bit.org.