-
Notifications
You must be signed in to change notification settings - Fork 227
Open
Description
Issue
Miller doesn't seem to be respecting the --rs or --ors options in conjunction with the --csv or --ocsv flags.
More specifically, if I provide Miller a CSV with \r\n record terminators, request CSV output format with either --csv or --ocsv and request the output have \r\n record terminators with either --rs '\r\n' or --ors '\r\n', then Miller should output a CSV with \r\n record terminators. On macOS the output has \n record terminators.
I feel like I'm missing something obvious.
Expected output
% printf '%s\r\n' data | mlr --csv --rs '\r\n' --hi --ho cat | od -v -A d -t cx1
0000000 d a t a \r \n
64 61 74 61 0d 0a
0000006Actual output
% printf '%s\r\n' data | mlr --csv --rs '\r\n' --hi --ho cat | od -v -A d -t cx1
0000000 d a t a \n
64 61 74 61 0a
0000005Environment details
Miller version:
% mlr --version
mlr 6.13.0macOS version:
% sw_vers
ProductName: macOS
ProductVersion: 15.5
BuildVersion: 24F74CPU architecture:
% uname -p
armMetadata
Metadata
Assignees
Labels
No labels