summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-03 21:51:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-03 21:51:48 (GMT)
commit67b632666e2e646875b77f76fde870f27d26ce8d (patch)
treefe7e5f0aa8e5ead716922dee24b37876d6a8a247 /win/tclWinPipe.c
parente74974e6cddc887a442d6134824509aeeb1ce0f7 (diff)
downloadtcl-67b632666e2e646875b77f76fde870f27d26ce8d.zip
tcl-67b632666e2e646875b77f76fde870f27d26ce8d.tar.gz
tcl-67b632666e2e646875b77f76fde870f27d26ce8d.tar.bz2
Use *WChar* in stead of *Char16* functions on Windows, always. It's actually the same, but more consistent.
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index fafdf49..902e01c 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -578,7 +578,7 @@ TclpOpenFile(
}
Tcl_DStringInit(&ds);
- nativePath = Tcl_UtfToChar16DString(path, -1, &ds);
+ nativePath = Tcl_UtfToWCharDString(path, -1, &ds);
/*
* If the file is not being created, use the existing file attributes.
@@ -1292,7 +1292,7 @@ ApplicationType(
Tcl_DStringSetLength(&nameBuf, nameLen);
Tcl_DStringAppend(&nameBuf, extensions[i], -1);
Tcl_DStringInit(&ds);
- nativeName = Tcl_UtfToChar16DString(Tcl_DStringValue(&nameBuf),
+ nativeName = Tcl_UtfToWCharDString(Tcl_DStringValue(&nameBuf),
Tcl_DStringLength(&nameBuf), &ds);
found = SearchPath(NULL, nativeName, NULL, MAX_PATH,
nativeFullPath, &rest);
@@ -1311,7 +1311,7 @@ ApplicationType(
continue;
}
Tcl_DStringInit(&ds);
- strcpy(fullName, Tcl_Char16ToUtfDString(nativeFullPath, -1, &ds));
+ strcpy(fullName, Tcl_WCharToUtfDString(nativeFullPath, -1, &ds));
Tcl_DStringFree(&ds);
ext = strrchr(fullName, '.');
@@ -1403,7 +1403,7 @@ ApplicationType(
GetShortPathName(nativeFullPath, nativeFullPath, MAX_PATH);
Tcl_DStringInit(&ds);
- strcpy(fullName, Tcl_Char16ToUtfDString(nativeFullPath, -1, &ds));
+ strcpy(fullName, Tcl_WCharToUtfDString(nativeFullPath, -1, &ds));
Tcl_DStringFree(&ds);
}
return applType;
@@ -1732,7 +1732,7 @@ BuildCommandLine(
}
Tcl_DStringFree(linePtr);
Tcl_DStringInit(linePtr);
- Tcl_UtfToChar16DString(Tcl_DStringValue(&ds), Tcl_DStringLength(&ds), linePtr);
+ Tcl_UtfToWCharDString(Tcl_DStringValue(&ds), Tcl_DStringLength(&ds), linePtr);
Tcl_DStringFree(&ds);
}
@@ -3215,7 +3215,7 @@ TclpOpenTemporaryFile(
const char *string = TclGetStringFromObj(basenameObj, &length);
Tcl_DStringInit(&buf);
- Tcl_UtfToChar16DString(string, length, &buf);
+ Tcl_UtfToWCharDString(string, length, &buf);
memcpy(namePtr, Tcl_DStringValue(&buf), Tcl_DStringLength(&buf));
namePtr += Tcl_DStringLength(&buf);
Tcl_DStringFree(&buf);
@@ -3236,7 +3236,7 @@ TclpOpenTemporaryFile(
sprintf(number, "%d.TMP", counter);
counter = (unsigned short) (counter + 1);
Tcl_DStringInit(&buf);
- Tcl_UtfToChar16DString(number, strlen(number), &buf);
+ Tcl_UtfToWCharDString(number, strlen(number), &buf);
Tcl_DStringSetLength(&buf, Tcl_DStringLength(&buf) + 1);
memcpy(namePtr, Tcl_DStringValue(&buf), Tcl_DStringLength(&buf) + 1);
Tcl_DStringFree(&buf);