summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.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 /unix/tclUnixFile.c
parentd068a5439521392f3c0e90a2d51e7b2769399359 (diff)
parentc3353d5a645c33f35445ab3c510dfef988897dd2 (diff)
downloadtcl-8f3937588f711654665287367b562dc619520f00.zip
tcl-8f3937588f711654665287367b562dc619520f00.tar.gz
tcl-8f3937588f711654665287367b562dc619520f00.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index 0cc4031..43be4cf 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -365,8 +365,7 @@ TclpMatchInDirectory(
* and pattern. If so, add the file to the result.
*/
-
- utfname = Tcl_ExternalToUtfDString(encoding, entryPtr->d_name, -1,
+ utfname = Tcl_ExternalToUtfDString(NULL, entryPtr->d_name, -1,
&utfDs);
if (Tcl_StringCaseMatch(utfname, pattern, 0)) {
int typeOk = 1;
@@ -381,7 +380,7 @@ TclpMatchInDirectory(
if (typeOk) {
Tcl_ListObjAppendElement(interp, resultPtr,
TclNewFSPathObj(pathPtr, utfname,
- Tcl_DStringLength(&utfDs), encoding));
+ Tcl_DStringLength(&utfDs)));
}
}
Tcl_DStringFree(&utfDs);