Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions mpck/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
#include <strings.h>
#endif

#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif

static int
parse_options(int argc, char *argv[])
{
Expand Down Expand Up @@ -147,6 +151,10 @@ main(int argc, char *argv[])
errno_t last_error;
int all_good;
total_info * total;

#ifdef _WIN32
SetConsoleOutputCP(CP_UTF8);
#endif

opt_count = parse_options(argc, argv);

Expand Down