annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
35484
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 source check.vim
35486
5c67aaf427ea patch 9.1.0510: CI: test_gettext fails on MacOS14 + MSVC Win
Christian Brabandt <cb@256bit.org>
parents: 35484
diff changeset
2 " TODO: Why does this fail on MacOS 14 and Windows MSVC (Github CI)?
5c67aaf427ea patch 9.1.0510: CI: test_gettext fails on MacOS14 + MSVC Win
Christian Brabandt <cb@256bit.org>
parents: 35484
diff changeset
3 CheckNotMac
5c67aaf427ea patch 9.1.0510: CI: test_gettext fails on MacOS14 + MSVC Win
Christian Brabandt <cb@256bit.org>
parents: 35484
diff changeset
4 CheckNotMSWindows
35484
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 " Test for gettext()
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 func Test_gettext()
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 set encoding=utf-8
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 call bindtextdomain("__PACKAGE__", getcwd())
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 try
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 language ru_RU
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 call assert_equal('ОШИБКА: ', gettext("ERROR: ", "__PACKAGE__"))
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 catch /^Vim\%((\a\+)\)\=:E197:/
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 throw "Skipped: not possible to set locale to ru (missing?)"
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 endtry
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 try
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17 language en_GB.UTF-8
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 call assert_equal('ERROR: ', gettext("ERROR: ", "__PACKAGE__"))
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 catch /^Vim\%((\a\+)\)\=:E197:/
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 throw "Skipped: not possible to set locale to en (missing?)"
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 endtry
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 set encoding&
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 endfunc
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24
04563887d70e patch 9.1.0509: not possible to translate Vim script messages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 " vim: shiftwidth=2 sts=2 expandtab