Skip to content
Open
Show file tree
Hide file tree
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 src/flac/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ static int main_to_fuzz(int argc, char *argv[])
#endif
{
int retval = 0;
#ifdef _WIN32
UINT old_console_output_cp;
old_console_output_cp = GetConsoleOutputCP();
#endif

#ifdef __EMX__
_response(&argc, &argv);
Expand Down Expand Up @@ -384,6 +388,10 @@ static int main_to_fuzz(int argc, char *argv[])

free_options();

#ifdef _WIN32
SetConsoleOutputCP(old_console_output_cp);
#endif

return retval;
}

Expand Down
9 changes: 8 additions & 1 deletion src/metaflac/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ static int main_to_fuzz(int argc, char *argv[])
{
CommandLineOptions options;
int ret = 0;

#ifdef _WIN32
UINT old_console_output_cp;
old_console_output_cp = GetConsoleOutputCP();
#endif
#ifdef __EMX__
_response(&argc, &argv);
_wildcard(&argc, &argv);
Expand Down Expand Up @@ -71,5 +74,9 @@ static int main_to_fuzz(int argc, char *argv[])

free_options(&options);

#ifdef _WIN32
SetConsoleOutputCP(old_console_output_cp);
#endif

return ret;
}
Loading