summaryrefslogtreecommitdiffstats
path: root/win/tclWinInit.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2009-08-02 10:41:09 (GMT)
committernijtmans <nijtmans>2009-08-02 10:41:09 (GMT)
commitad16cb700076b09c515d59baee67ff5e235326eb (patch)
treedb13aa69d3445775988e5d32e7501e656f8e6403 /win/tclWinInit.c
parent71048d27d0a64c0fa11da33a09037c820babf6e5 (diff)
downloadtcl-ad16cb700076b09c515d59baee67ff5e235326eb.zip
tcl-ad16cb700076b09c515d59baee67ff5e235326eb.tar.gz
tcl-ad16cb700076b09c515d59baee67ff5e235326eb.tar.bz2
eliminate TclWinResetInterfaceEncodings, because
it does exactly the same as TclWinEncodingsCleanup, make sure that tclWinProcs and tclWinTCharEncoding are always set and reset concurrently.
Diffstat (limited to 'win/tclWinInit.c')
-rw-r--r--win/tclWinInit.c33
1 files changed, 3 insertions, 30 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index 8d709e9..8043971 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinInit.c,v 1.82 2009/07/01 14:38:07 patthoyts Exp $
+ * RCS: @(#) $Id: tclWinInit.c,v 1.83 2009/08/02 10:41:09 nijtmans Exp $
*/
#include "tclWinInt.h"
@@ -397,31 +397,6 @@ ToUtf(
/*
*---------------------------------------------------------------------------
*
- * TclWinEncodingsCleanup --
- *
- * Reset information to its original state in finalization to allow for
- * reinitialization to be possible. This must not be called until after
- * the filesystem has been finalised, or exit crashes may occur when
- * using virtual filesystems.
- *
- * Results:
- * None.
- *
- * Side effects:
- * Static information reset to startup state.
- *
- *---------------------------------------------------------------------------
- */
-
-void
-TclWinEncodingsCleanup(void)
-{
- TclWinResetInterfaceEncodings();
-}
-
-/*
- *---------------------------------------------------------------------------
- *
* TclpSetInitialEncodings --
*
* Based on the locale, determine the encoding of the operating system
@@ -457,11 +432,9 @@ TclpSetInitialEncodings(void)
void
TclpSetInterfaces(void)
{
- int platformId, useWide;
+ int useWide;
- platformId = TclWinGetPlatformId();
- useWide = ((platformId == VER_PLATFORM_WIN32_NT)
- || (platformId == VER_PLATFORM_WIN32_CE));
+ useWide = (TclWinGetPlatformId() != VER_PLATFORM_WIN32_WINDOWS);
TclWinSetInterfaces(useWide);
}