Skip to content

Commit 13b6116

Browse files
committed
start: Remove dependency on kernel32.dll
1 parent b59c8ec commit 13b6116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/start.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ extern "kernel32" fn ExitProcess(exit_code: u32) callconv(.C) noreturn;
214214
/// into being a sane environment
215215
inline fn setupWindows() void {
216216
if (std.options.windows_force_utf8_codepage) {
217-
_ = std.os.windows.kernel32.SetConsoleOutputCP(65001); // use UTF-8 codepage
217+
std.os.windows.setConsoleCodePage(std.os.windows.CP_UTF8, .output) catch {};
218218
}
219219
}
220220

0 commit comments

Comments
 (0)