summaryrefslogtreecommitdiffstats
path: root/win/tkWinInit.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-04-12 07:18:49 (GMT)
committerhobbs <hobbs>2002-04-12 07:18:49 (GMT)
commit6cc091f340f6e3241b8b78ca196706e0e1891b67 (patch)
treeec1c9b7ae858e684f487be3fc7d97a069cfa3e32 /win/tkWinInit.c
parent659c4085c492c12bbd774955860f223e389260eb (diff)
downloadtk-6cc091f340f6e3241b8b78ca196706e0e1891b67.zip
tk-6cc091f340f6e3241b8b78ca196706e0e1891b67.tar.gz
tk-6cc091f340f6e3241b8b78ca196706e0e1891b67.tar.bz2
* win/tkWinInt.h: declaration for TkWinGetUnicodeEncoding
* win/tkWinDialog.c (GetFileNameW): use TkWinGetUnicodeEncoding * win/tkWinInit.c (TkpDisplayWarning): use TkWinGetUnicodeEncoding * win/tkWinFont.c: use TkWinGetUnicodeEncoding instead of static unicodeEncoding.
Diffstat (limited to 'win/tkWinInit.c')
-rw-r--r--win/tkWinInit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinInit.c b/win/tkWinInit.c
index ab8e2ae..fec211b 100644
--- a/win/tkWinInit.c
+++ b/win/tkWinInit.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: tkWinInit.c,v 1.8 2002/01/29 20:51:24 andreas_kupries Exp $
+ * RCS: @(#) $Id: tkWinInit.c,v 1.9 2002/04/12 07:18:49 hobbs Exp $
*/
#include "tkWinInt.h"
@@ -124,8 +124,8 @@ TkpDisplayWarning(msg, title)
CONST char *msg; /* Message to be displayed. */
CONST char *title; /* Title of warning. */
{
- Tcl_Encoding unicodeEncoding = Tcl_GetEncoding(NULL, "unicode");
Tcl_DString msgString, titleString;
+ Tcl_Encoding unicodeEncoding = TkWinGetUnicodeEncoding();
Tcl_UtfToExternalDString(unicodeEncoding, msg, -1, &msgString);
Tcl_UtfToExternalDString(unicodeEncoding, title, -1, &titleString);