oldtests: check +iconv for makeencoding

MSVC builds don't include it.
Test utf8 and latin only if +iconv is missing.
This commit is contained in:
Jan Edmund Lazo 2018-03-28 21:41:22 -04:00
parent 4bbe51b79e
commit 49e86cebf0

View File

@ -13,12 +13,19 @@ endif
let s:script = 'test_makeencoding.py'
let s:message_tbl = {
if has('iconv')
let s:message_tbl = {
\ 'utf-8': 'ÀÈÌÒÙ こんにちは 你好',
\ 'latin1': 'ÀÈÌÒÙ',
\ 'cp932': 'こんにちは',
\ 'cp936': '你好',
\}
else
let s:message_tbl = {
\ 'utf-8': 'ÀÈÌÒÙ こんにちは 你好',
\ 'latin1': 'ÀÈÌÒÙ',
\}
endif
" Tests for :cgetfile and :lgetfile.