vim-patch:8.1.1091: MS-Windows: cannot use multi-byte chars in environment var

Problem:    MS-Windows: cannot use multi-byte chars in environment var.
Solution:   Use the wide API. (Ken Takata, closes vim/vim#4008)
f0908e6fe1
This commit is contained in:
Jan Edmund Lazo 2019-11-06 22:01:58 -05:00
parent 697b0d73a7
commit c3cb54b5ff
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -141,6 +141,11 @@ func Test_let_varg_fail()
call s:set_varg8([0]) call s:set_varg8([0])
endfunction endfunction
func Test_let_utf8_environment()
let $a = 'ĀĒĪŌŪあいうえお'
call assert_equal('ĀĒĪŌŪあいうえお', $a)
endfunc
func Test_let_heredoc_fails() func Test_let_heredoc_fails()
call assert_fails('let v =<< marker', 'E991:') call assert_fails('let v =<< marker', 'E991:')