+[8.50b6 x64] Chinese input issue with Quick Search box

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
yyang
Member
Member
Posts: 162
Joined: 2007-03-27, 11:41 UTC
Location: China

+[8.50b6 x64] Chinese input issue with Quick Search box

Post by *yyang »

This is the same issue as http://ghisler.ch/board/viewtopic.php?p=272833. I have to put the detail in an image, because the forum complains about language conflict. Sorry for the inconvenience.

Image: http://oi42.tinypic.com/2zyh8af.jpg
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check it - I fixed a similar problem for Korean, so it's strange that you still get it with Chinese...
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [8.50b6 x64] Chinese input issue with Quick Search box

Post by *white »

yyang wrote:I have to put the detail in an image, because the forum complains about language conflict.
Too much foreign characters is considered spam.

Let's split it up.
[url]http://oi42.tinypic.com/2zyh8af.jpg[/url] (part 1 of 3) wrote:This issue only appears with the 64-bit version. I tested further (with an empty wincmd.ini and only Quick Search box turned on) and found that typing with IME and copy/paste had different behavior. I'll use 一二三四五 (i.e. 12345) for example, and | indicates the caret position. To get them with Chinese IME, type yi er san si wu, respectively.

When typing into the Qucik Search box, character by character, I get:
一|二
一|三二
一|四三二
一|五四三二
Last edited by white on 2013-10-18, 15:52 UTC, edited 1 time in total.
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

[url]http://oi42.tinypic.com/2zyh8af.jpg[/url] (part 2 of 3) wrote:And when copying and pasting into the Quick Search box with 一, 一二, 一二三, 一二三四, 一二三四五, I get:
Last edited by white on 2013-10-18, 15:53 UTC, edited 1 time in total.
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

[url]http://oi42.tinypic.com/2zyh8af.jpg[/url] (part 3 of 3) wrote:一|
一|二
一二|三
一二|三四
一二三|四五
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for your report, I could reproduce the problem: It only occurs when choosing the right ideogram with ENTER, but not with SPACE. The problem is that Windows sends a wron EM_SETSEL message to the edit control, so the text gets selected by mistake.

I'm now intercepting this message in beta 7, so it should work now. Please test it!
Author of Total Commander
https://www.ghisler.com
User avatar
yyang
Member
Member
Posts: 162
Joined: 2007-03-27, 11:41 UTC
Location: China

Post by *yyang »

Thank you very much for the update! But as I tested, the problem still existed with beta 7 64-bit version (32-bit is always OK). I don't think it's the IME's fault, because pasting from the clipboard also triggers it.

It may be helpful to report that when I typed into the Quick Search box, I did use SPACE rather than ENTER. My IME is Google Pinyin 2.7.22.120 (http://www.google.com/intl/zh-CN/ime/pinyin/). Thanks again for your huge effort!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I didn't know about this Google IME, sorry. Can you try with the built-in Windows IME (Microsoft PinYin ABC)? In this IME, when you press ENTER after entering the English text, the already typed text gets selected by mistake in TC 8.01 and 8.5 beta up to 6. This was fixed in beta 7.

I guess that the Google IME has a comparable bug, so I will probably be able to fix it in a similar way.
Author of Total Commander
https://www.ghisler.com
User avatar
yyang
Member
Member
Posts: 162
Joined: 2007-03-27, 11:41 UTC
Location: China

Post by *yyang »

In my environment, beta 7 does have a significant improvement. When I type multiple Chinese characters as a sequence (like entering yiersan followed by multiple SPACEs for 一二三), the characters are displayed in the correct order with a wrong caret position. I've tried with both Microsoft PinYin ABC and Google Pinyin. Copying and pasting from the clipboard has the same effect. So I guess, if some extra code is added to put the caret to the end each time, the problem should be solved.

I also tested beta 7 in a freshly installed Windows 7 64-bit in VirtualBox, and both 32-bit and 64-bit worked perfectly well. So it must be a very rare issue, and I'll try to port all my configurations to find the real problem. Thanks for your update!
#147523
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have now tested it with the Google IME, but I didn't encounter any problems at all! Maybe I need to reconfigure the IME to get the problem? I installed it and didn't change any settings during installation or during use. I typed
yi <space> er <space> san <space> si <space> wu <space>.
and the characters were always correct, and the cursor at the end. It also worked when typing one of the numbers to choose the correct character.

I have even tried to start TC x64 with a fresh wincmd.ini - the only change I made was to use "letters - with search dialog".

Could you try with a fresh ini file too, please? Just start TC like this:
c:\totalcmd\totalcmd64.exe /i=c:\totalcmd\test.ini
Author of Total Commander
https://www.ghisler.com
User avatar
yyang
Member
Member
Posts: 162
Joined: 2007-03-27, 11:41 UTC
Location: China

Post by *yyang »

There must be something wrong with my environment... I tested again with a new laptop, with all TC configurations ported, and the x64 version went well. Please mark this as fixed. Thanks a lot for your effort, and a sincere sorry.
#147523
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for your feedback! Difficult to say what causes it, but it sounds suspicious - either a virus scanner or a virus (key logger). Both may be using keyboard hooks which may be interfering with the input...
Author of Total Commander
https://www.ghisler.com
User avatar
yyang
Member
Member
Posts: 162
Joined: 2007-03-27, 11:41 UTC
Location: China

Post by *yyang »

Hello ghisler, today I found that this bug has disappeared in 8.51 b4. Still don't know why, because I haven't done anything special to my system since the last report. Anyway, thanks a lot!
#147523
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

There was a bugfix for Korean in Beta 4, which may have fixed this problem too:
http://ghisler.ch/board/viewtopic.php?t=39880

Does the description look similar?
Author of Total Commander
https://www.ghisler.com
User avatar
yyang
Member
Member
Posts: 162
Joined: 2007-03-27, 11:41 UTC
Location: China

Post by *yyang »

ghisler(Author) wrote:There was a bugfix for Korean in Beta 4, which may have fixed this problem too:
http://ghisler.ch/board/viewtopic.php?t=39880

Does the description look similar?
Yes, I think it's the same problem.
Post Reply