Add UTF-8 support for em-commands via WM_COPYDATA

Here you can propose new features, make suggestions etc.

Moderators: Stefan2, white, sheep, Hacker

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

Add UTF-8 support for em-commands via WM_COPYDATA

Post by *MVV » 2014-11-25, 20:27 UTC

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: 37170
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2014-11-27, 10:59 UTC

Good idea, shouldn't be difficult to add.
Author of Total Commander
http://www.ghisler.com

Bruce Salyer
Junior Member
Junior Member
Posts: 3
Joined: 2014-12-15, 16:02 UTC
Contact:

Post by *Bruce Salyer » 2014-12-22, 06:27 UTC

+1 for this! Would be great to see this incorporated. Thanks!

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

Post by *MVV » 2016-06-23, 09:53 UTC

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: 37170
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2016-06-23, 10:40 UTC

No, currently not.
Author of Total Commander
http://www.ghisler.com

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

Post by *MVV » 2016-06-28, 07:15 UTC

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: 37170
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2016-06-28, 20:45 UTC

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
http://www.ghisler.com

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

Post by *MVV » 2016-06-28, 21:33 UTC

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