diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-12-01 17:33:29 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-12-01 17:33:29 (GMT) |
commit | ef8a00717e0d5134035b7e2c70ec8808e851f6e0 (patch) | |
tree | e84b6cfa76ce2666f9fc96b88bd6f462909b7fe7 /unix/tclUnixFile.c | |
parent | 6c7ad3b1183f1a912bac6ba4fcdf0231749c359e (diff) | |
parent | b3838ea4450c4d290daa647c9a7f62d4e55ee7c0 (diff) | |
download | tcl-ef8a00717e0d5134035b7e2c70ec8808e851f6e0.zip tcl-ef8a00717e0d5134035b7e2c70ec8808e851f6e0.tar.gz tcl-ef8a00717e0d5134035b7e2c70ec8808e851f6e0.tar.bz2 |
Merge 8.6
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r-- | unix/tclUnixFile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c index 99f8046..c1fb7da 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.c @@ -39,8 +39,7 @@ void TclpFindExecutable( TCL_UNUSED(const char *) /*argv0*/) { - Tcl_Encoding encoding; - int length; + size_t length; wchar_t buf[PATH_MAX] = L""; char name[PATH_MAX * 3 + 1]; @@ -51,9 +50,8 @@ TclpFindExecutable( /* Strip '.exe' part. */ length -= 4; } - encoding = Tcl_GetEncoding(NULL, NULL); TclSetObjNameOfExecutable( - Tcl_NewStringObj(name, length), encoding); + Tcl_NewStringObj(name, length), NULL); } #else void |