Add UTF-8 support for em-commands via WM_COPYDATA

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Add UTF-8 support for em-commands via WM_COPYDATA

Post by *MVV »

TC supports UTF-8 in WM_COPYDATA messages for switching directories but it doesn't support UTF-8 in WM_COPYDATA messages for executing em-commands. Please add such support, it is really necessary for em-commands with parameters.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Good idea, shouldn't be difficult to add.
Author of Total Commander
https://www.ghisler.com
Bruce Salyer
Junior Member
Junior Member
Posts: 3
Joined: 2014-12-15, 16:02 UTC
Contact:

Post by *Bruce Salyer »

+1 for this! Would be great to see this incorporated. Thanks!
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Christian, are there any news here? Will you add UTF-8 support for EM-commands to TC 9.0?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, currently not.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think it would be good to see such addition in a major version, and it seems to be pretty easy to implement (just call another char to wide conversion function, one that checks for BOM at the beginning of string).

Code: Select all

em_xxx arguments
<BOM>em_xxx arguments
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, according to my code this should already work - but probably just for the arguments, the em_ commands themselves are not Unicode?
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Hm-m, it really works now! So thank you for checking it! :)

I've tested with TC 9.0b3 and some older versions, it works since 8.52. TC 8.51a and older versions do nothing when I send EM-command with UTF8-encoded arguments and BOM.

The only thing that it is not mentioned in the changelog.
Post Reply