Temporary files used by darcs for interacting with the user selected
editors have lines separated by \n.
On MS Windows while the default editor is set to notepad.exe the content
of those files is presented in one line as notepad.exe is not able to
cope with \n separated strings and expects lines to be terminated with \r\n.
Currently writeToFile is used for saving the content of the temporary
files. That function opens the file in binary mode that circumvents any
\n transliteration done by other modes. The mode of operation for this
function should not be changed as it takes action while working with the
repository and might impact the format.
Generally, a solution is needed to ensure that all temporary message
files edited by the user on MS Windows are \r\n terminated.
|