Last time I used vi, it showed ^M at end of each line... does the new version classify files as DOS/Unix and handles edits correctly?
- Altu -----Original Message----- From: Stephen De Gabrielle <spdegabrie...@gmail.com> To: fossil-users@lists.fossil-scm.org Sent: Fri, Oct 23, 2009 1:44 pm Subject: Re: [fossil-users] Developing on Unix and Windows vi emacs s. On Fri, Oct 23, 2009 at 8:09 AM, <altufa...@mail.com> wrote: > I'm not much familiar with editors in unix. Are there good editors in > unix that handle \r\n correctly? > > - Altu > > -----Original Message----- > From: Joshua Paine <jos...@letterblock.com> > To: fossil-users@lists.fossil-scm.org > Sent: __aolWsbDateToL10n__Wed, 21 Oct 2009 11:42:47 > -0400__aolWsbDateToL10n__ > Subject: Re: [fossil-users] Developing on Unix and Windows > > On Wed, 2009-10-21 at 17:09 +0200, Ramon Ribó wrote: >> 1- A TCL file is checked in on windows >> 2- It is checked out on unix and line ending is "\r\n" > > When the file is created on Windows, it should be created using unix > line endings. This is very easy to do in most editors. You can just set > it as your default and no one gets hurt. Everything except Notepad can > view it fine. > >> 1- I create a nice README or License file for my application in unix >> 3- README files are open by the user (not by my that I use a > wonderful >> convert-all editor). In Windows, they typically open with > Notepad. >> 4- The file is viewed as with one very long line > > Since your end users are not likely to checkout your code from fossil, I > don't think fossil's behavior is very relevant here. Either create your > README with windows line endings, or add some kind of conversion into > your build process when you produce packages for end users. > > For source code, my experience is that unix endings work everywhere for > running or viewing--except windows notepad. If there is any language > available on both windows and linux where a file will run/compile on > windows if it has windows endings *but not* if it has unix endings and > likewise will run on linux only with unix endings, then I have some > sympathy for your plight. Frankly, though, probably not enough that I > would want to see such an ugly feature built into fossil. > > -- > Joshua Paine > LetterBlock: Web applications built with joy > http://letterblock.com/ > 301-576-1920 > > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > -- -- Stephen De Gabrielle stephen.degabrie...@acm.org Telephone +44 (0)20 85670911 Mobile +44 (0)79 85189045 http://www.degabrielle.name/stephen _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users