Chinese character input bug with Quick Search box, v8.01 x64
Moderators: Hacker, petermad, Stefan2, white
Chinese character input bug with Quick Search box, v8.01 x64
The original title was "Writing "一二三" becomes "一三二" in Quick Search box, v8.01 x64", but the forum couldn't display it properly. "一二三" means "1 2 3" in Chinese. It's used in the test case below.
On my new laptop that runs Windows 7 x64 (Simplified Chinese version), I recently switched to 64-bit version of TC. QuickSearch eXtended is installed for PinYin search, but that doesn't matter, because I also tested with QuickSearch eXtended removed and an empty wincmd.ini.
Steps:
1. Switch to Chinese IME and enter "一". It appears in the Quick Search box as expected.
2. Continue to enter "二". This time the string in Quick Search box becomes "一二", but the input focus appears in between these two characters.
3. Continue to enter "三". The string becomes "一三二", with input focus immediately after "一".
4. Continue to enter anything (including ASCII characters), the input focus will always come after "一".
In short, entering or pasting "Cxy...z" into the Quick Search box, where
C = a Chinese character,
each of x, y, ..., z = any character,
will display "Cz...yx" with input focus following C.
There is nothing wrong with all-ASCII strings in v8.01 x64, or any string in v8.01 x32, so I believe it's a Lazarus control problem. Thanks!
On my new laptop that runs Windows 7 x64 (Simplified Chinese version), I recently switched to 64-bit version of TC. QuickSearch eXtended is installed for PinYin search, but that doesn't matter, because I also tested with QuickSearch eXtended removed and an empty wincmd.ini.
Steps:
1. Switch to Chinese IME and enter "一". It appears in the Quick Search box as expected.
2. Continue to enter "二". This time the string in Quick Search box becomes "一二", but the input focus appears in between these two characters.
3. Continue to enter "三". The string becomes "一三二", with input focus immediately after "一".
4. Continue to enter anything (including ASCII characters), the input focus will always come after "一".
In short, entering or pasting "Cxy...z" into the Quick Search box, where
C = a Chinese character,
each of x, y, ..., z = any character,
will display "Cz...yx" with input focus following C.
There is nothing wrong with all-ASCII strings in v8.01 x64, or any string in v8.01 x32, so I believe it's a Lazarus control problem. Thanks!
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks for your report.
Can you tell me how to enter these characters with Chinese IME (keyboard set to CH), so I can try to reproduce the error?
Can you tell me how to enter these characters with Chinese IME (keyboard set to CH), so I can try to reproduce the error?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
With Chinese IME on, type "yi" for "一", "er" for "二", and "san" for "三". Actually any leading Chinese character will cause the reported problem on my machine with TC v8.01 x64. Or you can copy and paste a single Chinese character into the Quick Search dialog box, and continue to type anything to see the effect. Thanks!ghisler(Author) wrote:Thanks for your report.
Can you tell me how to enter these characters with Chinese IME (keyboard set to CH), so I can try to reproduce the error?
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Strangely the error did not occur here. I have added some extra code to place the cursor at the end of the line, so it should fix the problem in the next version. I cannot guarantee it, though, so please test again when TC 8.5 beta comes out.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I'm sorry. I don't speak English very well.ghisler(Author) wrote:Strangely the error did not occur here. I have added some extra code to place the cursor at the end of the line, so it should fix the problem in the next version. I cannot guarantee it, though, so please test again when TC 8.5 beta comes out.
Certainly this code occured a new bug in Korean characters with quick search box.
I tested 8.50 beta 1.
I type '일이삼' but '일이이삼'
하나둘
하나나둘
새버그
새버버그
Second charater is duplicated.
P.S. Strangely problem does not occur when I type slowly.
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
The problem is probably that some of what you type goes to Total Commander, and the rest to the quick search dialog.
What do I need to press on an English keyboard switched to Korean to get the above input?
What do I need to press on an English keyboard switched to Korean to get the above input?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks, I will try it!
In fact I'm now using a timer to move the cursor to the correct location after opening the dialog box. It does NOT work when setting it immediately after putting the Korean string in the box - no idea why, must be some obscure Windows bug.
In fact I'm now using a timer to move the cursor to the correct location after opening the dialog box. It does NOT work when setting it immediately after putting the Korean string in the box - no idea why, must be some obscure Windows bug.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Nice to hear that! Please let me know if you encounter any similar problems.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com