From 91872d77126f3e04a2addb24deb0f88c529a33f4 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 13 Nov 2023 15:01:40 +0800 Subject: vim-patch:8.1.0970: text properties test fails when 'encoding' is not utf-8 (#26023) Problem: Text properties test fails when 'encoding' is not utf-8. Solution: Compare with original value of 'encoding'. (Christian Brabandt, closes vim/vim#3986) https://github.com/vim/vim/commit/ed79d1e348c40e2432802423bf22e4f7b536bf8a Co-authored-by: Bram Moolenaar --- test/old/testdir/runtest.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/old/testdir/runtest.vim b/test/old/testdir/runtest.vim index 9f52afc8b0..928bf7693f 100644 --- a/test/old/testdir/runtest.vim +++ b/test/old/testdir/runtest.vim @@ -84,7 +84,9 @@ source setup.vim set nocp viminfo+=nviminfo " Use utf-8 by default, instead of whatever the system default happens to be. -" Individual tests can overrule this at the top of the file. +" Individual tests can overrule this at the top of the file and use +" g:orig_encoding if needed. +let g:orig_encoding = &encoding set encoding=utf-8 " REDIR_TEST_TO_NULL has a very permissive SwapExists autocommand which is for -- cgit