-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
writedlm - issues with line breaks on Windows #15
Comments
I'd rather not, personally. Aside from notepad.exe, what programs can't handle unix line endings by now? If you really want |
I just discovered RFC 4180 (the only one about CSV) recommends using CRLF line endings:
RFC 2046 is about MIME. It sounds too bad not to follow the standard here, but since no standard really exists and it is easy to support both kinds of line breaks, it's not the end of the world. FWIW, R uses I guess the question is: does Excel open non-CRLF CSV files correctly by default? |
Excel does open non-CRLF CSV files correctly by default. |
Thanks. So is there any specific reason why you'd prefer CRLF? |
I use notepad to view my files as it is quick, light-weight, and doesn't lock files for editing. Also, I think that it would be throw up the least number of surprises by doing Windows things on Windows computers. |
When writing an array with
writedlm
on Windows, lines are not terminated with/r/n
.->
.41789803012680227 .5340308732027403.5931077439922414 .9097713865838699
Expected behaviour: on a Windows system, the Windows line break would be used.
The text was updated successfully, but these errors were encountered: