aboutsummaryrefslogtreecommitdiff
path: root/lib/std/process/Child.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2025-11-24 15:27:24 -0800
committerGitHub <noreply@github.com>2025-11-24 15:27:24 -0800
commit53e615b920a5c8de19df515c40edc70c82aee392 (patch)
treec47df5b06b926dd85173ed09eb5a332e1bb1f673 /lib/std/process/Child.zig
parent32dc46aae56623bff9b1fc792d49913f9295be7b (diff)
parent822f41242438faeaaf9846e3ebed454b59525ba7 (diff)
downloadzig-53e615b920a5c8de19df515c40edc70c82aee392.tar.gz
zig-53e615b920a5c8de19df515c40edc70c82aee392.zip
Merge pull request #25993 from squeek502/windows-paths
Teach `std.fs.path` about the wonderful world of Windows paths
Diffstat (limited to 'lib/std/process/Child.zig')
-rw-r--r--lib/std/process/Child.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/process/Child.zig b/lib/std/process/Child.zig
index 63cad29b85..da8d803d60 100644
--- a/lib/std/process/Child.zig
+++ b/lib/std/process/Child.zig
@@ -1227,7 +1227,7 @@ fn windowsCreateProcessPathExt(
const app_name = app_buf.items[0..app_name_len];
const ext_start = std.mem.lastIndexOfScalar(u16, app_name, '.') orelse break :unappended err;
const ext = app_name[ext_start..];
- if (windows.eqlIgnoreCaseWTF16(ext, unicode.utf8ToUtf16LeStringLiteral(".EXE"))) {
+ if (windows.eqlIgnoreCaseWtf16(ext, unicode.utf8ToUtf16LeStringLiteral(".EXE"))) {
return error.UnrecoverableInvalidExe;
}
break :unappended err;
@@ -1278,7 +1278,7 @@ fn windowsCreateProcessPathExt(
// On InvalidExe, if the extension of the app name is .exe then
// it's treated as an unrecoverable error. Otherwise, it'll be
// skipped as normal.
- if (windows.eqlIgnoreCaseWTF16(ext, unicode.utf8ToUtf16LeStringLiteral(".EXE"))) {
+ if (windows.eqlIgnoreCaseWtf16(ext, unicode.utf8ToUtf16LeStringLiteral(".EXE"))) {
return error.UnrecoverableInvalidExe;
}
continue;