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)
commit0ea7b69697650622e6ddd75c533100d51e7f797a (patch)
treeec1c9b7ae858e684f487be3fc7d97a069cfa3e32 /win/tkWinInit.c
parentfd46d60eb0347d5f3d0debda1cafbde485a9ec84 (diff)
downloadtk-0ea7b69697650622e6ddd75c533100d51e7f797a.zip
tk-0ea7b69697650622e6ddd75c533100d51e7f797a.tar.gz
tk-0ea7b69697650622e6ddd75c533100d51e7f797a.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);