changeset 16119:4fac64b51d74 v8.1.1064

patch 8.1.1064: no test for output conversion in the GTK GUI commit https://github.com/vim/vim/commit/c701f320e83b33e9ee67d1f7d67d9c1a9a99974d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 28 21:49:21 2019 +0100 patch 8.1.1064: no test for output conversion in the GTK GUI Problem: No test for output conversion in the GTK GUI. Solution: Add a simplistic test.
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Mar 2019 22:00:06 +0100
parents 461dfeb725d2
children de996330e189
files src/testdir/test_gui.vim src/version.c
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_gui.vim
+++ b/src/testdir/test_gui.vim
@@ -720,6 +720,21 @@ func Test_set_guipty()
   let &guipty = guipty_saved
 endfunc
 
+func Test_encoding_conversion()
+  " GTK supports conversion between 'encoding' and "utf-8"
+  if has('gui_gtk')
+    let encoding_saved = &encoding
+    set encoding=latin1
+
+    " would be nice if we could take a screenshot
+    intro
+    " sets the window title
+    edit SomeFile
+
+    let &encoding = encoding_saved
+  endif
+endfunc
+
 func Test_shell_command()
   new
   r !echo hello
--- a/src/version.c
+++ b/src/version.c
@@ -776,6 +776,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1064,
+/**/
     1063,
 /**/
     1062,