DDE fails to serve encoded strings
Closed / Duplicate620541ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 15 years ago
Descriptionplain2002-10-09 01:14:14
When serving strings to an external application, they are
served in the internal tcl interp encoding. This causes
data to be erroneous.
For example, set the following on a wish:
package require dde
dde servername test
set test "this is a test ñáéíóú"
and open Word, and create a field like follows:
{DDEAUTO TclEval test test}
You will see the wrong display of the test string.
A very simple solution is to apply the
Tcl_UtfToExternalDString conversion before returning the
intended string.
Find attached a tclWinDde.c,v 1.8, as of 8.4.0, with the
applied suggestion.
bagnonmplain2002-10-09 08:14:14
File Added - 32659: tclWinDde.c
bagnonmplain2002-10-09 08:18:45
Logged In: YES user_id=187881 Sorry, this is bug 473946, I missed to check the open bugs list. At least, you can close both numbers with the attached file. See U. 8-)
bagnonmplain2002-10-09 08:19:28
Logged In: YES user_id=187881 Sorry, this is bug 473946, I missed to check the open bugs list. At least, you can close both numbers with the attached file. See U. 8-)
kennykb Ticket [620541ffff]: 1 change
[History diff]2003-03-22 06:58:08
nijtmansplain2012-05-07 14:42:12
allow_comments - 1 Marked as duplicate of #473946
Log in (anonymous is fine) to add a comment.
Attachments:
- tclWinDde.c [download] added by bagnonm on 2002-10-09 08:14:14. [details]