Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compare Tool: Strg+Cursor is depending on the Encoding

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC7.56(a)/7.57 bug reports (English) Printable version
View previous topic :: View next topic  
Author Message
TMg
Junior Member
Junior Member


Joined: 20 Apr 2011
Posts: 9

PostPosted: Wed Apr 20, 2011 9:49 am    Post subject: Compare Tool: Strg+Cursor is depending on the Encoding Reply with quote

When comparing two text files with "Compare By Content..." I found a Bug: When turning on "Edit mode" and pressing Ctrl+Cursor left and Ctrl+Cursor right the text cursor acts different with UTF-8 encoding and with ANSI encoding. With UTF-8 encoding when pressing Ctrl+Cursor key the text cursor only jumps to the end of words followed by a space. With ANSI encoding the text cursor jumps to the start of words. And it jumps to a lot more boundaries, not only to spaces.

Other programs do this similar to what the compare tool does with ANSI encoding. That's what I expect.

Example:
<example><tag>Example Text Word</tag></example>

Word boundaries with ANSI encoding:
<|example><|tag>|Example |Text |Word</|tag></|example>

Word boundaries with UTF-8 encoding:
<example><tag>Example| Text| Word</tag></example>

Deutsch: Beim "Vergleich nach Inhalt..." von zwei Textdateien fiel mir ein Bug auf: Im Bearbeitungsmodus verhalten sich die Tastenkombinationen Strg+Pfeil links und Strg+Pfeil rechts mit UTF-8-Codierung anders als mit ANSI-Codierung. Mit UTF-8-Codierung springt der Textcursor mit Strg+Pfeiltaste nur an Wortenden direkt vor Leerzeichen. Mit ANSI-Codierung springt der Textcursor an Wortanfänge. Es werden auch wesentlich mehr Stellen angesprungen, nicht nur bei Leerzeichen. Das Verhalten mit ANSI-Codierung ist das, was ich aus anderen Programmen kenne und erwarte.
Back to top
View user's profile Send private message
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 5351
Location: Valsted, Denmark

PostPosted: Wed Apr 20, 2011 7:13 pm    Post subject: Reply with quote

I can confirm this bug.
_________________
#524
Danish Total Commander Translator
Windows XP Home 32bit SP3 & Windows 7 Home Premium 64bit SP1 and Windows 8. TC 8.01 32 + 64bit

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24621
Location: Switzerland

PostPosted: Thu Apr 21, 2011 7:23 am    Post subject: Reply with quote

This isn't a bug, the two functions are just completely different implementations. The problem with UTF-8 is to correctly detect word separators.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TMg
Junior Member
Junior Member


Joined: 20 Apr 2011
Posts: 9

PostPosted: Thu Apr 21, 2011 8:48 am    Post subject: Reply with quote

I know this are different implementations. That's the problem. Both should work the same way. At least for the characters that are the same in both encodings.
_________________
#236863
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC7.56(a)/7.57 bug reports (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group