FixCRLF v1.1 Win32 Edition ========================== What is it? ----------- This is a Win32 version of a previously released 16-bit Windows utility to convert between Unix and DOS text format. Unix text files have lines delimited by a single line-feed character (0A hex), whereas DOS text-mode files are delimited with a carriage-return/line-feed pair (0D/0A hex). Text editors like vi and notepad are pretty dumb - vi cannot edit DOS files and notepad cannot edit Unix files. Visual C++ can read Unix files but will only save them as DOS files. The best solution to the problem is to get a smart editor that can understand both modes AND remember which it is supposed to be when saving the file back out. I haven't seen one. How does it work? ----------------- OK then, my program. FixCRLF is dead simple and should be a breeze to use. Just drag files onto the window or program icon. A dialog will pop up asking what sort of conversion you want, and then the program will then chug away, converting the files in place. As the program has been 'souped up' to Win32, it will now do long filenames properly, which is an absolute must for us Unix folks. I have managed to squeeze in a bit of last minute redesign to take account of Microsoft having broken iconic drag-drop in Windows 95. Nice one, Microsoft. Oh yeah, I almost forgot. Because FixCRLF accepts file names on the command line, you can create a desktop shortcut in Windows 95 and drag files onto that. Command line length is limited so, as they say, your milage will vary. Thanks to beverly@datacube.com for pointing out this 'feature' to me. Sadly, if you drag files onto shortcuts, for 16-bit compatibility, Windows 95 only supplies the short filenames :-( Isn't it a bit over the top? ---------------------------- FixCRLF is probably already far too polished for a task that can, after all, be done with a single line of Perl, but I will be glad to hear of any bugs/ideas/comments. What I would really like to do is to make the program a generic search/replace widget using regular expressions. I am having a look at the GNU regex stuff, but if anyone has some ready-to-go DOS/Windows regex stuff then all the better. What's the deal? ---------------- FixCRLF is free software, written as a contribution to the Samba project. Therefore the usual disclaimer applies - This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. My liability shall not exceed the amount paid to me for use of the software. Enjoy! -- Jim Barry