tsfile icon indicating copy to clipboard operation
tsfile copied to clipboard

[CPP] Inconsistent output files under win and unix

Open hongzhi-gao opened this issue 1 year ago • 1 comments

The contents of the generated files of the programs in example and benchmark are inconsistent between unix and win. In Windows, if we open a file without O_BINARY flags, the system will replace '\n' with '\r\n' when the file is written

hongzhi-gao avatar Jul 03 '24 08:07 hongzhi-gao

Yes, it was an issue we met in IoTDB as well.

This PR of IoTDB fixed that problem. We may solve it in TsFile by the same way. https://github.com/apache/iotdb/pull/12706/files

HTHou avatar Jul 03 '24 08:07 HTHou