[PATCH] I solved the problem of Windows8-IME in the console version of vim

496 views
Skip to first unread message

Nobuhiro Takasaki

unread,
Jan 7, 2014, 12:02:24 PM1/7/14
to vim...@googlegroups.com
Hello.

Sorry If you had already solved.
Please be additional test.

(In case of encoding=utf8 and termencoding=sjis)

Thanks.
Nobuhiro Takasaki

differ.txt

Nobuhiro Takasaki

unread,
Jan 7, 2014, 11:16:28 PM1/7/14
to vim...@googlegroups.com
2014年1月8日水曜日 2時02分24秒 UTC+9 Nobuhiro Takasaki:
I was just rude, and a little disconcertedly.

--------
I was supported because there is a change in the behavior of ReadConsoleInput.

The past, in DBCS, I was able to get in multiple calls to the function to the high and low bytes.

Currently, must be obtained by the function call once the high and low bytes.

I made that way.

--------
Thanks.
Nobuhiro Takasaki

mattn

unread,
Jan 8, 2014, 1:26:21 AM1/8/14
to vim...@googlegroups.com
Please attach patch of universal diff style.

mattn

unread,
Jan 8, 2014, 1:28:28 AM1/8/14
to vim...@googlegroups.com
And seems to be inverse for from file and to file.

mattn

unread,
Jan 8, 2014, 1:32:38 AM1/8/14
to vim...@googlegroups.com

Bram Moolenaar

unread,
Jan 10, 2014, 7:51:57 AM1/10/14
to mattn, vim...@googlegroups.com

Yasuhiro Matsumoto wrote:

> https://gist.github.com/mattn/8312677

Thanks. I'll include it. If someone spots a problem with this patch,
please let us know.

--
hundred-and-one symptoms of being an internet addict:
130. You can't get out of your desk even if it's time to eat or time
to go to the bathroom.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Nobuhiro Takasaki

unread,
Jan 11, 2014, 10:45:26 AM1/11/14
to vim...@googlegroups.com
I apologize for the trouble. I solved the bug of logic fatal.
The previous one did not have key repeat.

I make sure carefully in the future.

https://gist.github.com/ntak/8372268

--------
Thanks.
Nobuhiro Takasaki

Bram Moolenaar

unread,
Jan 11, 2014, 1:48:15 PM1/11/14
to Nobuhiro Takasaki, vim...@googlegroups.com

Nobuhiro Takasaki wrote:

> I apologize for the trouble. I solved the bug of logic fatal.
> The previous one did not have key repeat.
>
> I make sure carefully in the future.
>
> https://gist.github.com/ntak/8372268

So this fixes a problem introduced by patch 7.4.137?
I suppose this was discussed elsewhere.

--
hundred-and-one symptoms of being an internet addict:
141. You'd rather go to http://www.weather.com/ than look out your window.

Nobuhiro Takasaki

unread,
Jan 11, 2014, 9:08:45 PM1/11/14
to vim...@googlegroups.com

There is no discussion in other places about the patch.
I am acting alone.

This problem was caused by a bug of Windows 8.
This behavior is not a specification.

I saw, os_win32.c we have acquired one by one event from the buffer of the key code in ReadConsoleInput.

Due to a bug in Windows 8, pointer to a buffer of key code does not increment.
However, the number of events is decremented.

To avoid this, it can only be processed by the read operation once all the events of the buffers in the key code.

The patch, I made that way.

In fact, os_win32.c is hacking manner how to use the API.
The previous patch works, too, but did not completely correspond to the hacking.

Hacks:
(Use the data obtained by PeekConsoleInput, incrementing the buffer ReadConsoleInput)
(ReadConsoleInput returns an error, the code to switch the STDIN)

The latest patch will solve all.

I studied about the manners of the various programmer then.
Vim is a great program.

--------
Thanks.
Nobuhiro Takasaki

Reply all
Reply to author
Forward
0 new messages