authorgravatar for HugoFlorentino@users.noreply.github.comHugoFlorentino <HugoFlorentino@users.noreply.github.com> 2021-09-10 22:38:38-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-09-20 02:05:52-04:00
log806aeab2a729e0638ccf6682171181df56d31122
treef033e90bb767a9070fe1901e3a8b7ef39fef2915
parentb3ae69d80b5bc04a334882d955d638eac64eef33

adding support for UTF-8 output


1 files changed, 4 insertions(+), 0 deletions(-)

lib/std/os/windows/kernel32.zig+4
......@@ -152,6 +152,8 @@ pub extern "kernel32" fn GetCommandLineW() callconv(WINAPI) LPWSTR;
152152
153153pub extern "kernel32" fn GetConsoleMode(in_hConsoleHandle: HANDLE, out_lpMode: *DWORD) callconv(WINAPI) BOOL;
154154
155pub extern "kernel32" fn GetConsoleOutputCP() callconv(WINAPI) UINT;
156
155157pub extern "kernel32" fn GetConsoleScreenBufferInfo(hConsoleOutput: HANDLE, lpConsoleScreenBufferInfo: *CONSOLE_SCREEN_BUFFER_INFO) callconv(WINAPI) BOOL;
156158pub extern "kernel32" fn FillConsoleOutputCharacterA(hConsoleOutput: HANDLE, cCharacter: CHAR, nLength: DWORD, dwWriteCoord: COORD, lpNumberOfCharsWritten: *DWORD) callconv(WINAPI) BOOL;
157159pub extern "kernel32" fn FillConsoleOutputCharacterW(hConsoleOutput: HANDLE, cCharacter: WCHAR, nLength: DWORD, dwWriteCoord: COORD, lpNumberOfCharsWritten: *DWORD) callconv(WINAPI) BOOL;
......@@ -286,6 +288,8 @@ pub extern "kernel32" fn SetConsoleCtrlHandler(
286288 Add: BOOL,
287289) callconv(WINAPI) BOOL;
288290
291pub extern "kernel32" fn SetConsoleOutputCP(wCodePageID: UINT) callconv(WINAPI) BOOL;
292
289293pub extern "kernel32" fn SetFileCompletionNotificationModes(
290294 FileHandle: HANDLE,
291295 Flags: UCHAR,