diff options
author | hobbs <hobbs@noemail.net> | 1999-12-21 23:55:35 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 1999-12-21 23:55:35 (GMT) |
commit | d55fa93c846e63b9259fb7eb12a6fbb1a585e7c4 (patch) | |
tree | 8440d77d027cdd267529fc21a07d94dba0fa7403 /mac | |
parent | fa55557fb4f82fdc3862c84442ef9cbfbdb50d0e (diff) | |
download | tk-d55fa93c846e63b9259fb7eb12a6fbb1a585e7c4.zip tk-d55fa93c846e63b9259fb7eb12a6fbb1a585e7c4.tar.gz tk-d55fa93c846e63b9259fb7eb12a6fbb1a585e7c4.tar.bz2 |
* mac/tclMacHLEvents.c: fixed applescript for I18N [Bug: 3644]
FossilOrigin-Name: 72918ec41f6dc82f8f96f1d0446d5c6aafb3f723
Diffstat (limited to 'mac')
-rw-r--r-- | mac/tkMacHLEvents.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mac/tkMacHLEvents.c b/mac/tkMacHLEvents.c index f86d2fa..b8604d8 100644 --- a/mac/tkMacHLEvents.c +++ b/mac/tkMacHLEvents.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacHLEvents.c,v 1.3 1999/04/16 01:51:31 stanton Exp $ + * RCS: @(#) $Id: tkMacHLEvents.c,v 1.4 1999/12/21 23:55:36 hobbs Exp $ */ #include "tcl.h" @@ -310,6 +310,7 @@ ScriptHandler( theErr = -1771; } else { if (theDesc.descriptorType == (DescType)'TEXT') { + Tcl_DString encodedText; short length, i; length = GetHandleSize(theDesc.dataHandle); @@ -322,7 +323,10 @@ ScriptHandler( } HLock(theDesc.dataHandle); - tclErr = Tcl_GlobalEval(interp, *theDesc.dataHandle); + Tcl_ExternalToUtfDString(NULL, *theDesc.dataHandle, length, + &encodedText); + tclErr = Tcl_GlobalEval(interp, Tcl_DStringValue(&encodedText)); + Tcl_DStringFree(&encodedText); HUnlock(theDesc.dataHandle); } else if (theDesc.descriptorType == (DescType)'alis') { Boolean dummy; |