patch 8.0.0005 v8.0.0005
authorBram Moolenaar <Bram@vim.org>
Thu, 15 Sep 2016 09:44:27 +0000 (11:44 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 15 Sep 2016 09:44:27 +0000 (11:44 +0200)
Problem:    Netbeans test fails with Python 3. (Jonathonf)
Solution:   Encode the string before sending it. (closes #1070)

src/testdir/test_netbeans.py
src/version.c

index 3471dd95268a1c0ba5b7887f19cd0057981cf147..e0d291d60d4acfc1bdacba97aae68f0d648fbac6 100644 (file)
@@ -52,7 +52,7 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
                 return
 
             if len(response) > 0:
-                self.request.sendall(response)
+                self.request.sendall(response.encode('utf-8'))
                 # Write the respoinse into the file, so that the test can knows
                 # the command was sent.
                 with open("Xnetbeans", "a") as myfile:
index 5634114385ce0e081b6670a949f21aee64158623..77d35a2dc3f21f5b6028a52637e2ce9fb3ba2df6 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5,
 /**/
     4,
 /**/