ben_josephs wrote:If this is indeed the problem, the solution is simply to save the file in PC format: File | Save As... | File format:PC.
Understood.
Now, how how can I set TextPad so that it always saves in PC mode? Using one-at-a-time Save-As will take me a very long time on the one thousand files which I have to convert.
You can tell TextPad to save new files in PC format, either all of them or just those in particular classes: Configure | Preferences | Document Classes | <Class> | Create new file as:PC.
But it will always save existing files with the line endings they already have, unless you explicitly tell it not to do so in each case.
Your best way to deal with this may be to convert the files on the command line using such a utility as unix2dos.
Well, Googling unix2dos windows brings up 48 000 results, many of which are for tools that run on Windows.
I use the Cygwin package (http://www.cygwin.com/). Apart from a Linux-like programming environment, this provides a bash shell and most Linux command-line tools, including unix2dos. You can use the tools from a Windows or Windows-like command line as well as from bash.
But there are plenty of stand-alone tools. This one is right at the top of the list I get, and looks as good as any: http://www.freedownloadscenter.com/Util ... X2DOS.html.
This is not a recommendation. You must choose one yourself.