summaryrefslogtreecommitdiff
path: root/src/if_python.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-21 16:03:02 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-21 16:03:02 +0100
commit2e2f52a4a0fd560d37a11a7383a4d52b63ca6cfc (patch)
treec4bde05ee74541b38cfb98052cb4dd64ea91c999 /src/if_python.c
parentef2dff52de52c17fe1bd7c06cbb32d8955901f5a (diff)
downloadvim-git-2e2f52a4a0fd560d37a11a7383a4d52b63ca6cfc.tar.gz
patch 8.2.2178: Python 3: non-utf8 character cannot be handledv8.2.2178
Problem: Python 3: non-utf8 character cannot be handled. Solution: Change the string decode. (Björn Linse, closes #1053)
Diffstat (limited to 'src/if_python.c')
-rw-r--r--src/if_python.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/if_python.c b/src/if_python.c
index 6338a5b8d..7f90ede15 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -69,6 +69,10 @@
# undef PY_SSIZE_T_CLEAN
#endif
+// these are NULL for Python 2
+#define ERRORS_DECODE_ARG NULL
+#define ERRORS_ENCODE_ARG ERRORS_DECODE_ARG
+
#undef main // Defined in python.h - aargh
#undef HAVE_FCNTL_H // Clash with os_win32.h