*** unix/tkUnixKey.c.orig	Fri Apr 16 03:51:46 1999
--- unix/tkUnixKey.c	Sun Jan 16 17:43:02 2000
***************
*** 83,89 ****
--- 83,94 ----
  #endif /* TK_USE_INPUT_METHODS */
      Tcl_DStringSetLength(&buf, len);
  
+ #if defined(I18N_IMPROVE) && defined(TK_USE_INPUT_METHODS)
+     Tcl_ExternalToUtfDString(winPtr->dispPtr->imEncoding,
+ 			     Tcl_DStringValue(&buf), len, dsPtr);
+ #else
      Tcl_ExternalToUtfDString(NULL, Tcl_DStringValue(&buf), len, dsPtr);
+ #endif /* I18N_IMPROVE && TK_USE_INPUT_METHODS */
      Tcl_DStringFree(&buf);
  
      return Tcl_DStringValue(dsPtr);
