summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-09-01 20:31:20 +0200
committerBram Moolenaar <Bram@vim.org>2015-09-01 20:31:20 +0200
commitac360bf2ca293735fc7c6654dc2b3066f4c62488 (patch)
tree904bdc8a17cf04f957ddf3a4408aeeacc8cb6f5b /src/ui.c
parent615942452eb74eee7d8386fd3d76a1534181fa06 (diff)
downloadvim-git-ac360bf2ca293735fc7c6654dc2b3066f4c62488.tar.gz
patch 7.4.852v7.4.852
Problem: On MS-Windows console Vim uses ANSI APIs for keyboard input and console output, it cannot input/output Unicode characters. Solution: Use Unicode APIs for console I/O. (Ken Takata, Yasuhiro Matsumoto)
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index 7bbf2838e..e0e54d924 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -42,7 +42,7 @@ ui_write(s, len)
/* Don't output anything in silent mode ("ex -s") unless 'verbose' set */
if (!(silent_mode && p_verbose == 0))
{
-#ifdef FEAT_MBYTE
+#if defined(FEAT_MBYTE) && !defined(WIN3264)
char_u *tofree = NULL;
if (output_conv.vc_type != CONV_NONE)
@@ -56,7 +56,7 @@ ui_write(s, len)
mch_write(s, len);
-#ifdef FEAT_MBYTE
+#if defined(FEAT_MBYTE) && !defined(WIN3264)
if (output_conv.vc_type != CONV_NONE)
vim_free(tofree);
#endif