Menu

#114 xml ed -L -P changes CRLF to LF on Windows

all
closed-wont-fix
nobody
None
5
2017-08-03
2015-10-29
Gerben Vos
No

On Windows, xml ed -L -P commands (with in-place edit and spaces preserved) output XML with only LF as line endings, even if the original XML file had CRLF line endings. The resulting file is hard to view and edit in simple Windows editors such as Notepad. Please make sure that lines end with CRLF on Windows, or at least preserve CRLF if that is used in the original XML file.

Discussion

  • Noam Postavsky

    Noam Postavsky - 2017-08-03

    Unfortunately, turning off CRLF is the only reasonable way to avoid adding ASCII CRs in a UTF-16 document. You can avoid this by using UTF-8 instead.

     
  • Noam Postavsky

    Noam Postavsky - 2017-08-03
    • status: open --> closed-wont-fix
     

Log in to post a comment.

MongoDB Logo MongoDB