ocamlfind icon indicating copy to clipboard operation
ocamlfind copied to clipboard

ocamlfind output has problems on windows

Open mseri opened this issue 1 year ago • 1 comments

On windows in unix context it should not output the extra \r otherwise it breaks its use in configure scripts: see https://github.com/ocaml/opam-repository/pull/24841

mseri avatar Nov 29 '23 14:11 mseri

This is not the correct approach - ocamlfind on Windows should emit \r\n because it's a Windows program (emitting Unix line-endings does actually cause problems for native Windows shell utilities which expect CRLF). The patch in the issue (using tr -d on the Unix side) is what should be done. It's all part of the encouragement to stop using Posix when you actually want to be cross-platform 🙂

dra27 avatar Mar 28 '24 10:03 dra27