]> granicus.if.org Git - vim/commitdiff
patch 8.1.1064: no test for output conversion in the GTK GUI v8.1.1064
authorBram Moolenaar <Bram@vim.org>
Thu, 28 Mar 2019 20:49:21 +0000 (21:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 28 Mar 2019 20:49:21 +0000 (21:49 +0100)
Problem:    No test for output conversion in the GTK GUI.
Solution:   Add a simplistic test.

src/testdir/test_gui.vim
src/version.c

index 7874fffa064c613d0fc3475b6cd701e2780c255d..f1f2cdd153d73e8d13d8bb6b3c0583909b9d490a 100644 (file)
@@ -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
index 1fa7429805656c14f2440b831e6b66de4aa0608a..b8b3c149e5553e0611f8c3cf71539ae259470b8f 100644 (file)
@@ -775,6 +775,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1064,
 /**/
     1063,
 /**/