Thank you for your answer.
In advance I checked that ticket (and some others). Initially I was not sure that they are connected, because I was reading in raw (= hex) format and not expecting that the format/encoding is parsed during reading process (read_lines_raw vs read_lines).
But checking for different combination for end of line separators (CRLF, CR and LF) it is clearly visible that they are not parsed as 2 bytes: the last raw vector in each case is staring with 00.
> raw_crlf = iconv("ab\r\n12",from="UTF-8",to="UTF-16LE", toRaw = TRUE)[[1]]
> raw_cr = iconv("ab\r12",from="UTF-8",to="UTF-16LE", toRaw = TRUE)[[1]]
> raw_lf = iconv("ab\n12",from="UTF-8",to="UTF-16LE", toRaw = TRUE)[[1]]
>
> readr::read_lines_raw(raw_crlf)
[[1]]
[1] 61 00 62 00
[[2]]
[1] 00
[[3]]
[1] 00 31 00 32 00
> readr::read_lines_raw(raw_cr)
[[1]]
[1] 61 00 62 00
[[2]]
[1] 00 31 00 32 00
> readr::read_lines_raw(raw_lf)
[[1]]
[1] 61 00 62 00
[[2]]
[1] 00 31 00 32 00
I assume that this is connected to multi-byte issue.
In meantime (till the multi-byte support will be implemented), do you have any idea for a workaround?
Thank you.