diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-12-01 17:27:03 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-12-01 17:27:03 (GMT) |
commit | b3838ea4450c4d290daa647c9a7f62d4e55ee7c0 (patch) | |
tree | ab8048833cbc1d40199a4e58b2f20fa8c271484e /unix | |
parent | 99e3536c5deb6093092d55b86128553876ecc7d6 (diff) | |
download | tcl-b3838ea4450c4d290daa647c9a7f62d4e55ee7c0.zip tcl-b3838ea4450c4d290daa647c9a7f62d4e55ee7c0.tar.gz tcl-b3838ea4450c4d290daa647c9a7f62d4e55ee7c0.tar.bz2 |
Backport TIP #402: General Platform UNC Support from 8.7, but only for Cygwin and QNX. This was already partially present, but was never completed.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixFile.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c index a75ae22..c269079 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.c @@ -39,7 +39,6 @@ TclpFindExecutable( const char *argv0) /* The value of the application's argv[0] * (native). */ { - Tcl_Encoding encoding; #ifdef __CYGWIN__ int length; wchar_t buf[PATH_MAX] = L""; @@ -52,10 +51,10 @@ TclpFindExecutable( /* Strip '.exe' part. */ length -= 4; } - encoding = Tcl_GetEncoding(NULL, NULL); TclSetObjNameOfExecutable( - Tcl_NewStringObj(name, length), encoding); + Tcl_NewStringObj(name, length), NULL); #else + Tcl_Encoding encoding; const char *name, *p; Tcl_StatBuf statBuf; Tcl_DString buffer, nameString, cwd, utfName; |