|
From: Slava P. <sl...@je...> - 2002-03-19 04:57:45
|
On Tue, 2002-03-19 at 16:48, Wendy S wrote: > Do you ever sleep? :) Five minute response time! I have cable at home and my e-mail client is open all the time... > I definitely transferred the .java files in text mode. Should I not? > What is text mode for if not for text files, which is all source code > is? (I note that jEdit's FTP plugin does transfer the .java files as > binary, so there must be a reason...) Text mode, when transferring from Unix to Windows, converts all \n to \r\n. Maybe you uploaded them in binary mode (which does no conversion) them downloaded them as text. This will result in an extra set of \n's being added. > I uploaded the files with WS-FTP. I'll try it tomorrow and see if > it's adding anything to the files. Just use jEdit's FTP plugin :-) > I figured I had just used Windows line-endings \r\n at work, and then > loaded the file here on Linux and jEdit saw the \r's and interpreted > them as newlines. > > Doesn't DOS/Windows use carriage return + newline, while Unix only > uses newline? Yes, but jEdit can read files containing both line ending formats (as well as Mac files, which contain \r only). -- Slava Pestov |