view runtime/spell/check_locales.vim @ 23925:e979bf909fd8 v8.2.2505

patch 8.2.2505: Vim9: crash after defining function with invalid return type Commit: https://github.com/vim/vim/commit/31842cd0772b557eb9584a13740430db29de8a51 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 12 22:10:21 2021 +0100 patch 8.2.2505: Vim9: crash after defining function with invalid return type Problem: Vim9: crash after defining function with invalid return type. Solution: Clear function growarrays. Fix memory leak.
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Feb 2021 22:15:03 +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