I'm a Chinese.
one day I compare two textfiles include Chinese language characters,
it's some differents, and I like to edit one file's character, but error occured when I inputing the new character. It's showed in unexpected.
I don't know if somebody else has encounter this problem, but it's just a problem trouble me.
report bug about compare file content
Moderators: Hacker, petermad, Stefan2, white
My OS is Windows XP home edition Simplified Chinese without any SP
MY TC is Total Commander 7.0 release candidate 5
Chinese-Character is Double-Byte-Character.
when I input a Chinese-Character:
1. it's no show what my want it's show, though the value is right
2. and the cursor move only one byte, not move to the end of the Chinese-Character, then if I input more Chinese characters, the value go wrong.
e.g.
I input a Chinese-Character, it's hex value is 'CE C4',
then I input another hex value is 'BC FE' of Chinese-Character,
the whole string's hex value is 'CE BC FE C4',
not I expect - 'CE C4 BC FE'.
and the third - 'BC D0', the whole value is 'CE BC BC D0 FE C4',
not I expect - 'CE C4 BC FE BC D0'.
MY TC is Total Commander 7.0 release candidate 5
Chinese-Character is Double-Byte-Character.
when I input a Chinese-Character:
1. it's no show what my want it's show, though the value is right
2. and the cursor move only one byte, not move to the end of the Chinese-Character, then if I input more Chinese characters, the value go wrong.
e.g.
I input a Chinese-Character, it's hex value is 'CE C4',
then I input another hex value is 'BC FE' of Chinese-Character,
the whole string's hex value is 'CE BC FE C4',
not I expect - 'CE C4 BC FE'.
and the third - 'BC D0', the whole value is 'CE BC BC D0 FE C4',
not I expect - 'CE C4 BC FE BC D0'.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I can confirm what you describe, and I have written a fix for the problem. You are right, the character is added correctly, but the cursor is moved by only one byte, not 2.
Therefore the second character is inserted at the wrong location in the file. This also causes problems with the UNDO function.
Please contact me by e-mail for a test version to fix this problem. I'm sending you this message also by e-mail.
Therefore the second character is inserted at the wrong location in the file. This also causes problems with the UNDO function.
Please contact me by e-mail for a test version to fix this problem. I'm sending you this message also by e-mail.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Great, thanks for your very responsive help (by e-mail) with this problem!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com