diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-28 11:02:15 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-02-26 22:38:52 +0100 |
commit | 1d8e7683604828592bd41cdac5a351145cd93487 (patch) | |
tree | 5e1faaf2da6e92ecfcbe5e7dd37b8b284a8d0849 /test | |
parent | 865584dd0c5b34530e44f03d4b42349a83cbca47 (diff) | |
download | rneovim-1d8e7683604828592bd41cdac5a351145cd93487.tar.gz rneovim-1d8e7683604828592bd41cdac5a351145cd93487.tar.bz2 rneovim-1d8e7683604828592bd41cdac5a351145cd93487.zip |
os_getenv, os_setenv: revert "widechar" impl
It's reported that the Windows widechar variants do automatically
convert from the current codepage to UTF16, which is very helpful. So
the "widechar" impls are a good direction. But libuv v1.12 does that
for us, so the next commit will use that instead.
ref #8398
ref #9267
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/eval/let_spec.lua | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/functional/eval/let_spec.lua b/test/functional/eval/let_spec.lua index 050cff3c22..ff71daab74 100644 --- a/test/functional/eval/let_spec.lua +++ b/test/functional/eval/let_spec.lua @@ -45,15 +45,15 @@ describe(':let', function() ]=]) end) - it("sets environment variables", function() - local multibyte_multiline = [[\p* .ม .ม .ม .ม่ .ม่ .ม่ ֹ ֹ ֹ .ֹ .ֹ .ֹ ֹֻ ֹֻ ֹֻ - .ֹֻ .ֹֻ .ֹֻ ֹֻ ֹֻ ֹֻ .ֹֻ .ֹֻ .ֹֻ ֹ ֹ ֹ .ֹ .ֹ .ֹ ֹ ֹ ֹ .ֹ .ֹ .ֹ ֹֻ ֹֻ - .ֹֻ .ֹֻ .ֹֻ a a a ca ca ca à à à]] - command("let $NVIM_TEST1 = 'AìaB'") - command("let $NVIM_TEST2 = 'AaあB'") - command("let $NVIM_TEST3 = '"..multibyte_multiline.."'") - eq('AìaB', eval('$NVIM_TEST1')) - eq('AaあB', eval('$NVIM_TEST2')) - eq(multibyte_multiline, eval('$NVIM_TEST3')) + it("multibyte environment variables", function() + command("let $NVIM_TEST = 'AìaB'") + eq('AìaB', eval('$NVIM_TEST')) + command("let $NVIM_TEST = 'AaあB'") + eq('AaあB', eval('$NVIM_TEST')) + local mbyte = [[\p* .ม .ม .ม .ม่ .ม่ .ม่ ֹ ֹ ֹ .ֹ .ֹ .ֹ ֹֻ ֹֻ ֹֻ + .ֹֻ .ֹֻ .ֹֻ ֹֻ ֹֻ ֹֻ .ֹֻ .ֹֻ .ֹֻ ֹ ֹ ֹ .ֹ .ֹ .ֹ ֹ ֹ ֹ .ֹ .ֹ .ֹ ֹֻ ֹֻ + .ֹֻ .ֹֻ .ֹֻ a a a ca ca ca à à à]] + command("let $NVIM_TEST = '"..mbyte.."'") + eq(mbyte, eval('$NVIM_TEST')) end) end) |