diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-24 08:45:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-24 08:45:23 (GMT) |
commit | 8f3937588f711654665287367b562dc619520f00 (patch) | |
tree | 5b59249467fb969e5992e66caf62440d6134cd37 /win/tclWinFile.c | |
parent | d068a5439521392f3c0e90a2d51e7b2769399359 (diff) | |
parent | c3353d5a645c33f35445ab3c510dfef988897dd2 (diff) | |
download | tcl-8f3937588f711654665287367b562dc619520f00.zip tcl-8f3937588f711654665287367b562dc619520f00.tar.gz tcl-8f3937588f711654665287367b562dc619520f00.tar.bz2 |
Merge 8.7
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r-- | win/tclWinFile.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index d23b0a8..2c7cfd4 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -1075,7 +1075,6 @@ TclpMatchInDirectory( const char *utfname; int checkDrive = 0, isDrive; DWORD attr; - Tcl_Encoding encoding; native = data.cFileName; attr = data.dwFileAttributes; @@ -1113,7 +1112,6 @@ TclpMatchInDirectory( * the system. */ - encoding = Tcl_GetEncoding(interp ,NULL); if (Tcl_StringCaseMatch(utfname, pattern, 1)) { /* * If the file matches, then we need to process the remainder @@ -1132,7 +1130,7 @@ TclpMatchInDirectory( if (NativeMatchType(isDrive, attr, native, types)) { Tcl_ListObjAppendElement(interp, resultPtr, TclNewFSPathObj(pathPtr, utfname, - Tcl_DStringLength(&ds), encoding)); + Tcl_DStringLength(&ds))); } } |