summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-12-01 17:33:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-12-01 17:33:29 (GMT)
commitef8a00717e0d5134035b7e2c70ec8808e851f6e0 (patch)
treee84b6cfa76ce2666f9fc96b88bd6f462909b7fe7 /unix
parent6c7ad3b1183f1a912bac6ba4fcdf0231749c359e (diff)
parentb3838ea4450c4d290daa647c9a7f62d4e55ee7c0 (diff)
downloadtcl-ef8a00717e0d5134035b7e2c70ec8808e851f6e0.zip
tcl-ef8a00717e0d5134035b7e2c70ec8808e851f6e0.tar.gz
tcl-ef8a00717e0d5134035b7e2c70ec8808e851f6e0.tar.bz2
Merge 8.6
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixFile.c6
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