From 92548c63db304c75eac148990b77793351783c2c Mon Sep 17 00:00:00 2001 From: jingham Date: Fri, 15 Oct 1999 04:47:12 +0000 Subject: Stupid bug in TclpLoadFile - use the converted value! --- mac/tclMacLoad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mac/tclMacLoad.c b/mac/tclMacLoad.c index 622eb65..daf87ca 100644 --- a/mac/tclMacLoad.c +++ b/mac/tclMacLoad.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: tclMacLoad.c,v 1.3 1999/04/16 00:47:20 stanton Exp $ + * RCS: @(#) $Id: tclMacLoad.c,v 1.4 1999/10/15 04:47:12 jingham Exp $ */ #include @@ -135,7 +135,7 @@ TclpLoadFile( *(Tcl_UtfAtIndex(packageName, Tcl_NumUtfChars(packageName, -1) - 5)) = 0; native = Tcl_UtfToExternalDString(NULL, fileName, -1, &ds); - err = FSpLocationFromPath(strlen(fileName), fileName, &fileSpec); + err = FSpLocationFromPath(strlen(native), native, &fileSpec); Tcl_DStringFree(&ds); if (err != noErr) { -- cgit v0.12