Skip to content

Commit

Permalink
Removing Yaml ascii filter (allowing result.yml to be in full UFT-8).
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Krulis committed Apr 15, 2021
1 parent a055611 commit 95e70ea
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/tasks/external_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,20 +171,12 @@ void external_task::process_results_output(

// if there was something in stdout, write it to result
if (std_out.gcount() != 0) {
result_stdout = result_stdout.substr(0, std_out.gcount());
// filter non printable result
helpers::filter_non_printable_chars(result_stdout);
// write to result structure
result->output_stdout = result_stdout;
result->output_stdout = result_stdout.substr(0, std_out.gcount());
}

// if there was something in stderr, write it to result
if (std_err.gcount() != 0) {
result_stderr = result_stderr.substr(0, std_err.gcount());
// filter non printable result
helpers::filter_non_printable_chars(result_stderr);
// write to result structure
result->output_stderr = result_stderr;
result->output_stderr = result_stderr.substr(0, std_err.gcount());
}

// be nice and close streams
Expand Down

0 comments on commit 95e70ea

Please sign in to comment.