From 7b470edbf5e874d173c860d5296ef3f25f845134 Mon Sep 17 00:00:00 2001 From: dgp Date: Wed, 1 Dec 2004 21:58:55 +0000 Subject: * generic/tclEncoding.c: Moved TclpSetInitialEncodings() call from Tcl_FindExecutable() into TclInitEncodingSubsystem(). This is important on Windows where it establishes whether the "ascii" or "unicode" set of system routines will be used, and that needs to be done earlier to support filesystem operations. [Bug 1077005] --- ChangeLog | 9 +++++++++ generic/tclEncoding.c | 5 ++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d081ec1..34df070 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-12-01 Don Porter + + * generic/tclEncoding.c: Moved TclpSetInitialEncodings() + call from Tcl_FindExecutable() into TclInitEncodingSubsystem(). + This is important on Windows where it establishes whether the + "ascii" or "unicode" set of system routines will be used, and + that needs to be done earlier to support filesystem operations. + [Bug 1077005] + 2004-12-01 Donal K. Fellows * tests/winDde.test: Rewritten to use tcltest2 features more diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c index c3f53c3..6932301 100644 --- a/generic/tclEncoding.c +++ b/generic/tclEncoding.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclEncoding.c,v 1.27 2004/11/30 19:34:47 dgp Exp $ + * RCS: @(#) $Id: tclEncoding.c,v 1.28 2004/12/01 21:58:59 dgp Exp $ */ #include "tclInt.h" @@ -513,7 +513,7 @@ TclInitEncodingSubsystem() Tcl_CreateEncoding(&type); encodingsInitialized = 1; - + TclpSetInitialEncodings(); } /* @@ -1304,7 +1304,6 @@ Tcl_FindExecutable(argv0) * (native). */ { TclInitSubsystems(); - TclpSetInitialEncodings(); TclpFindExecutable(argv0); } -- cgit v0.12