diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-06-26 14:31:02 (GMT) | 
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-06-26 14:31:02 (GMT) | 
| commit | f28660a2a18fccf43f7dc702c72f7cdc472d8fe5 (patch) | |
| tree | d9d14949559023cffce9873d2e33742a7b7c13e1 /unix/tclUnixFile.c | |
| parent | c00b9a18996060374293b89c2a7d767d80b4f833 (diff) | |
| parent | d1aaa8d1d236d4780a49ddb922a31fd2d0563cda (diff) | |
| download | tcl-f28660a2a18fccf43f7dc702c72f7cdc472d8fe5.zip tcl-f28660a2a18fccf43f7dc702c72f7cdc472d8fe5.tar.gz tcl-f28660a2a18fccf43f7dc702c72f7cdc472d8fe5.tar.bz2  | |
use cygwin_conv_path() in stead of deprecated cygwin_conv_to_full_posix_path
Diffstat (limited to 'unix/tclUnixFile.c')
| -rw-r--r-- | unix/tclUnixFile.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c index 1c456a0..0c68d64 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.c @@ -42,11 +42,10 @@ TclpFindExecutable(      Tcl_Encoding encoding;  #ifdef __CYGWIN__      int length; -    char buf[PATH_MAX * TCL_UTF_MAX + 1]; +    char buf[PATH_MAX * 2];      char name[PATH_MAX * TCL_UTF_MAX + 1]; -    GetModuleFileNameW(NULL, name, PATH_MAX); -    WideCharToMultiByte(CP_UTF8, 0, name, -1, buf, PATH_MAX, NULL, NULL); -    cygwin_conv_to_full_posix_path(buf, name); +    GetModuleFileNameW(NULL, buf, PATH_MAX); +    cygwin_conv_path(3, buf, name, PATH_MAX);      length = strlen(name);      if ((length > 4) && !strcasecmp(name + length - 4, ".exe")) {  	/* Strip '.exe' part. */  | 
