Line-endings with Mac + Linux + Windows

Jeremy Lizakowski jeremy at GreenSpringDesign.com
Mon Mar 2 16:45:24 CST 2009


I'm running into text files that have ^M (ctrl-m) characters at the end 
of every line.  This likely occurred during many edits amongst Mac, 
Linux, and Windows.  I think Mac is the main issue.

I'm also seeing a single <FEFF> character at the start of a file, which 
is unicode for a non-breaking space IIRC.

I tried using win32text to try maintain text files in unix format.  But 
when I did update null and update, it gave a lot of warnings about 
'already has CRLF line endings', and didn't convert the ^M characters.

What's the best way to fix/work with line endings?

Thank you,

Jeremy






More information about the Mercurial mailing list