summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-24 08:45:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-24 08:45:23 (GMT)
commit8f3937588f711654665287367b562dc619520f00 (patch)
tree5b59249467fb969e5992e66caf62440d6134cd37 /win/tclWinFile.c
parentd068a5439521392f3c0e90a2d51e7b2769399359 (diff)
parentc3353d5a645c33f35445ab3c510dfef988897dd2 (diff)
downloadtcl-8f3937588f711654665287367b562dc619520f00.zip
tcl-8f3937588f711654665287367b562dc619520f00.tar.gz
tcl-8f3937588f711654665287367b562dc619520f00.tar.bz2
Merge 8.7
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r--win/tclWinFile.c4
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)));
}
}