view runtime/spell/check_locales.vim @ 15772:649b81669197 v8.1.0893

patch 8.1.0893: terminal test is a bit flaky commit https://github.com/vim/vim/commit/3615abb693ab2d9374ae72f0993128e32ffa3e1c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 10 23:04:12 2019 +0100 patch 8.1.0893: terminal test is a bit flaky Problem: Terminal test is a bit flaky. Solution: Add test_terminal_no_cmd() to list of flaky tests.
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 Feb 2019 23:15:05 +0100
parents ea3c3f13385c
children
line wrap: on
line source

" Script to check if all the locales used in spell files are available.

grep /sys env LANG/ */main.aap
let not_supported = []
for item in getqflist()
  let lang = substitute(item.text, '.*LANG=\(\S\+\).*', '\1', '')
  try
    exe 'lang ' . lang
  catch /E197/
    call add(not_supported, lang)
  endtry
endfor

if len(not_supported) > 0
  echo "Unsupported languages:"
  for l in not_supported
    echo l
  endfor
else
  echo "Everything appears to be OK"
endif