In the handling of the support info query, we open the metadata file
using the "r" mode. On Windows, this is a problem when opening
packetized metadata files, which may contain bytes that Windows will
treat as end of lines and transorm. Use "rb" instead.
This makes the test_trace_copy test pass on Windows. It currently fails
with the "session-rotation" trace.
Change-Id: Iaa7a3b8def1c07335c5e7e094d82121df56de268
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2110
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
goto end;
}
- metadata_file = g_fopen(metadata_path, "r");
+ metadata_file = g_fopen(metadata_path, "rb");
if (metadata_file) {
struct ctf_metadata_decoder_config metadata_decoder_config = { 0 };
enum ctf_metadata_decoder_status decoder_status;