I would want it to be ASCII text only, not with the CLRF terminators. I'm not sure about the difference, since the file that works contains newlines as well.
I've managed to change it by running the following command:
Code:
$ perl -pi -e 's/\r$//g' original_file.txt
The output reads:
Code:
$ file original_file.txt
original_file.txt: : ASCII English text
To reverse it, I believe you can use the unixdos command
However, it would be fun to know if there is a way to programmaticly find the file type and change it, without running external commands.