Chinese input occasionally goes wrong

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

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

Chinese input occasionally goes wrong

Post by *yyang »

Windows XP SP3 with Google Pinyin 1.2.32.78.

As I try to type "开国" (with Google Pinyin) into the "Search for" field, only "国" appears. As far as I've tested, some other editables have the same problem, e.g. "Search in", "FTP New Connection", and the command line. "New text file" (Shift+F4) and "FTP: connection details" are OK.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Total Commander uses normal Unicode edit controls here, nothing special. I assume that Google Pinyin cannot handle Ansi programs with some Unicode windows.

Btw, do you get the same problem in inplace rename (Shift+F6)? This was a Unicode control already in TC 7.04a, so you may get the same problem there too...
Author of Total Commander
https://www.ghisler.com
User avatar
yyang
Member
Member
Posts: 155
Joined: 2007-03-27, 11:41 UTC
Location: China

Post by *yyang »

ghisler(Author) wrote:Btw, do you get the same problem in inplace rename (Shift+F6)? This was a Unicode control already in TC 7.04a, so you may get the same problem there too...
No, Shift+F6 works fine for me.

In fact it's the single character "开" that can't be accepted, not the combination "开国".
Last edited by yyang on 2009-04-20, 09:53 UTC, edited 1 time in total.
User avatar
yyang
Member
Member
Posts: 155
Joined: 2007-03-27, 11:41 UTC
Location: China

Post by *yyang »

ghisler(Author) wrote:This was a Unicode control already in TC 7.04a, so you may get the same problem there too...
I've tested it again on a clean Windows 2000 with SP4 inside VirtualBox 2.2.0. 7.04a works all OK, and 7.50beta has exactly the same problem.

Actually it's the first apparent bug I've come across in years of enjoyment! :)
Last edited by yyang on 2009-04-20, 09:54 UTC, edited 1 time in total.
yeskky
Member
Member
Posts: 177
Joined: 2007-03-01, 05:32 UTC
Location: Jiang Su,China

Post by *yeskky »

Strange on my computer.I can search "开国" with Chinese IME but I can not create a folder with name "开国" using Chinese IME.After typing "开" nothing shows in the textfield.If I type "开国" as a word only "国" shows.
But copy "开国" and paste to New Folder dialog works.
#222405 Single user licence
User avatar
yyang
Member
Member
Posts: 155
Joined: 2007-03-27, 11:41 UTC
Location: China

Post by *yyang »

yeskky wrote:Strange on my computer.I can search "开国" with Chinese IME but I can not create a folder with name "开国" using Chinese IME.After typing "开" nothing shows in the textfield.If I type "开国" as a word only "国" shows.
But copy "开国" and paste to New Folder dialog works.
You are right. Copy & paste works perfectly. I forgot to mention that.
JoeyChina
Junior Member
Junior Member
Posts: 6
Joined: 2009-04-20, 02:30 UTC

Post by *JoeyChina »

It is same with another Chinese IMF(Sogou Pinyin).
“开” is disappear when input it, and nothing happen.
User avatar
yyang
Member
Member
Posts: 155
Joined: 2007-03-27, 11:41 UTC
Location: China

Post by *yyang »

ghisler(Author) wrote:Total Commander uses normal Unicode edit controls here, nothing special
After a little exploration I find that all (as far as I've tested, of course) "good" editables have an extended style 0x00000200 (WS_EX_CLIENTEDGE) and the "bad" ones don't. This alone seems unlikely to make any difference, but hope it can help. :)
Last edited by yyang on 2009-04-20, 19:46 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, that's interesting!

Can you describe how to create “开” character with Chinese IME? What keys do I need to press to make it work? I need to know to reproduce the problem...
Author of Total Commander
https://www.ghisler.com
User avatar
yyang
Member
Member
Posts: 155
Joined: 2007-03-27, 11:41 UTC
Location: China

Post by *yyang »

ghisler(Author) wrote:Thanks, that's interesting!

Can you describe how to create “开” character with Chinese IME? What keys do I need to press to make it work? I need to know to reproduce the problem...
It's spelled as k-a-i (w/o hyphens). Usually the first or second choice will be "开".
calon
Junior Member
Junior Member
Posts: 2
Joined: 2009-04-21, 02:54 UTC
Contact:

Post by *calon »

The same problem occurs when creating new directory (F7), another disappeared character I found is "需" ("xu" in Chinese Mandarin Pinyin input method).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could reproduce and fix the problem now, thanks for your help! It's happening in all comboboxes, but edit boxes are OK. The problem was caused by internal Delphi message handling. The problem happens with Unicode characters where the lower byte is zero.
Author of Total Commander
https://www.ghisler.com
User avatar
yyang
Member
Member
Posts: 155
Joined: 2007-03-27, 11:41 UTC
Location: China

Post by *yyang »

ghisler(Author) wrote:I could reproduce and fix the problem now, thanks for your help! It's happening in all comboboxes, but edit boxes are OK. The problem was caused by internal Delphi message handling. The problem happens with Unicode characters where the lower byte is zero.
Fabulous! You are my hero.
cheming
Member
Member
Posts: 153
Joined: 2004-05-07, 14:38 UTC
Location: China

Post by *cheming »

confirmed! this bug is fixed!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks for checking it!

To yyang:
Can you confirm it too, please?
Author of Total Commander
https://www.ghisler.com
Post Reply