diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-24 07:57:54 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-24 07:57:54 (GMT) |
| commit | c3353d5a645c33f35445ab3c510dfef988897dd2 (patch) | |
| tree | e324bac995b3095c40458e48569929c2510e65e1 /win/tclWinFile.c | |
| parent | 710734302bdc7b1230d0de70b5fed5ccdaffa4bd (diff) | |
| parent | 5837fdc42cd33f9b1f81bc4f75b9dad62b0631b2 (diff) | |
| download | tcl-c3353d5a645c33f35445ab3c510dfef988897dd2.zip tcl-c3353d5a645c33f35445ab3c510dfef988897dd2.tar.gz tcl-c3353d5a645c33f35445ab3c510dfef988897dd2.tar.bz2 | |
Backout [0f2870649c804dd8], since testcase encoding-2.2 fails
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))); } } |
