diff options
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 d0720ab..880adc0 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -1095,7 +1095,6 @@ TclpMatchInDirectory( const char *utfname; int checkDrive = 0, isDrive; DWORD attr; - Tcl_Encoding encoding; native = data.cFileName; attr = data.dwFileAttributes; @@ -1133,7 +1132,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 @@ -1152,7 +1150,7 @@ TclpMatchInDirectory( if (NativeMatchType(isDrive, attr, native, types)) { Tcl_ListObjAppendElement(interp, resultPtr, TclNewFSPathObj(pathPtr, utfname, - Tcl_DStringLength(&ds), encoding)); + Tcl_DStringLength(&ds))); } } |
