17 Jul 2004 23:16
Re: Linux vs win32 emacs
Syd Bauman <Syd_Bauman <at> Brown.edu>
2004-07-17 21:16:53 GMT
2004-07-17 21:16:53 GMT
> I'm having great trouble moving scripts over from windows > to Linux. > > OK with command differences, but its something to do > with line endings? > > Any way I can 'see' line endings /convert them or something > in Linux please? At least to see where the problem is! In Emacs this has to do with coding systems, which I've never fully understood. See the Info node "Coding Systems" which is under "International" or "International Character Set Support" under "Emacs". However, I typically do this with a command-line Perl script when I need to convert from Macintosh linends to Unix linends: perl -pe's/\r/\n/g;' in-with-Mac-eols > out-with-Unix-eols Can't be too difficult to figure out the Windows equivalent. (s/\r\n/\n/g; or maybe s/\r\f/\n/g;?) ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
RSS Feed