Page 1 of 1

Add UTF-8 support for em-commands via WM_COPYDATA

Posted: 2014-11-25, 20:27 UTC
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.

Posted: 2014-11-27, 10:59 UTC
by ghisler(Author)
Good idea, shouldn't be difficult to add.

Posted: 2014-12-22, 06:27 UTC
by Bruce Salyer
+1 for this! Would be great to see this incorporated. Thanks!

Posted: 2016-06-23, 09:53 UTC
by MVV
Christian, are there any news here? Will you add UTF-8 support for EM-commands to TC 9.0?

Posted: 2016-06-23, 10:40 UTC
by ghisler(Author)
No, currently not.

Posted: 2016-06-28, 07:15 UTC
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

Posted: 2016-06-28, 20:45 UTC
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?

Posted: 2016-06-28, 21:33 UTC
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.