view src/testdir/test_gettext_utf8.vim @ 35486:5c67aaf427ea v9.1.0510

patch 9.1.0510: CI: test_gettext fails on MacOS14 + MSVC Win Commit: https://github.com/vim/vim/commit/6bc11c06d2d55220c0d0a42fb7aba27b66f86e53 Author: Christian Brabandt <cb@256bit.org> Date: Fri Jun 21 07:31:04 2024 +0200 patch 9.1.0510: CI: test_gettext fails on MacOS14 + MSVC Win Problem: CI: test_gettext fails on MacOS14 + MSVC Win (after v9.1.0509) Solution: Skip the test for now related: #12447 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 21 Jun 2024 07:45:07 +0200
parents 04563887d70e
children c21bafafb59d
line wrap: on
line source

source check.vim
" TODO: Why does this fail on MacOS 14 and Windows MSVC (Github CI)?
CheckNotMac
CheckNotMSWindows

" Test for gettext()
func Test_gettext()
  set encoding=utf-8
  call bindtextdomain("__PACKAGE__", getcwd())
  try
    language ru_RU
    call assert_equal('ОШИБКА: ', gettext("ERROR: ", "__PACKAGE__"))
  catch /^Vim\%((\a\+)\)\=:E197:/
    throw "Skipped: not possible to set locale to ru (missing?)"
  endtry
  try
    language en_GB.UTF-8
    call assert_equal('ERROR: ', gettext("ERROR: ", "__PACKAGE__"))
  catch /^Vim\%((\a\+)\)\=:E197:/
    throw "Skipped: not possible to set locale to en (missing?)"
  endtry
  set encoding&
endfunc

" vim: shiftwidth=2 sts=2 expandtab