Tcl Source Code

View Ticket
Login
Ticket UUID: 620541
Title: DDE fails to serve encoded strings
Type: Bug Version: obsolete: 8.4.0
Submitter: bagnonm Created on: 2002-10-09 01:14:14
Subsystem: 28. dde Package Assigned To: dkf
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2012-05-07 14:42:12
Resolution: Duplicate Closed By: nijtmans
    Closed on: 2012-05-07 07:42:12
Description:
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.
User Comments: nijtmans added on 2012-05-07 14:42:12:

allow_comments - 1

Marked as duplicate of #473946

bagnonm added on 2002-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-)

bagnonm added on 2002-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-)

bagnonm added on 2002-10-09 08:14:14:

File Added - 32659: tclWinDde.c

Attachments: