I have an SGI (Irix 6.2) SAMBA server, and a Win95 PC. How do you handle editing of Unix ASCII files (Source code, etc.) which contain only a NL (0x0a). When editing on the PC (Win95) It wants to insert CR-LF (0x0d,0x0a) pairs. Can the two be reconciled so they each see their own particular truth? -- Dan Hewett
Hey folks, This come up enough that we should make it part of the FAQ, maybe? At 10:09 26-11-97 +1100, Dan Hewett wrote:>I have an SGI (Irix 6.2) SAMBA server, and a Win95 PC. >How do you handle editing of Unix ASCII files (Source code, etc.) >which contain only a NL (0x0a). When editing on the PC (Win95) >It wants to insert CR-LF (0x0d,0x0a) pairs. Can the two be reconciled >so they each see their own particular truth?There are editors, such as PFE32, which can auto-detect a Unix/Windows text file. Luke also told me that NotePad can do this, although NotePad has some nasty size limitations. ___________________________________________________ Roeland M.J. Meyer, ISOC (InterNIC RM993) e-mail: mailto:rmeyer@mhsc.com Personalweb pages: http://www.mhsc.com/~rmeyer Company web-site: http://www.mhsc.com/ ___________________________________________ "The FBI doesn't want to read encrypted documents, they want to read YOUR encrypted documents."
On Wed, 26 Nov 1997, Roeland M.J. Meyer wrote:> Hey folks, > > This come up enough that we should make it part of the FAQ, maybe?hi dan, write it as a suggestion to samba-bugs, with FAQ: at the start of the subject. if you add it yourself, please add it against the .sgml file, from which the .html and .txt files are generated. thanks.> At 10:09 26-11-97 +1100, Dan Hewett wrote: > >I have an SGI (Irix 6.2) SAMBA server, and a Win95 PC. > >How do you handle editing of Unix ASCII files (Source code, etc.) > >which contain only a NL (0x0a). When editing on the PC (Win95) > >It wants to insert CR-LF (0x0d,0x0a) pairs. Can the two be reconciled > >so they each see their own particular truth? > > There are editors, such as PFE32, which can auto-detect a Unix/Windows text > file. Luke also told me that NotePad can do this, although NotePad has some > nasty size limitations.ah. wordpad, not notepad. lukes <a href="mailto:lkcl@switchboard.net" > Luke Kenneth Casson Leighton </a> <a href="http://mailhost.cb1.com/~lkcl"> Samba Consultancy and Support </a>
> > > At 10:09 26-11-97 +1100, Dan Hewett wrote: > > >I have an SGI (Irix 6.2) SAMBA server, and a Win95 PC. > > >How do you handle editing of Unix ASCII files (Source code, etc.) > > >which contain only a NL (0x0a). When editing on the PC (Win95) > > >It wants to insert CR-LF (0x0d,0x0a) pairs. Can the two be reconciled > > >so they each see their own particular truth? > > > > There are editors, such as PFE32, which can auto-detect a Unix/Windows text > > file. Luke also told me that NotePad can do this, although NotePad has some > > nasty size limitations. > > ah. wordpad, not notepad. > >Also a nice shareware editor called TextPad is really worth looking at. In addition to automatically detect both DOS and UNIX file formats it has some nice features, like regex searches through several files, auto indenting, block manipulation commands, a block select mode with which you can delete, move or copy columns whole or in part, It has macros, an optional clip library with html tags, html character, control character from which you can copy and paste into your text. It also has a tools menu which you can configure to run external tools upon your file, like make, cc, or some filter. Multiple files can be edited at the same time, without the nasty size limitations of notepad. Besides, it is extensively configurable. Needless to say it cal save files in either format. Highly recommended. You can download a fully functional version, without to much nagging from http://www.textpad.com -- Eigil
> > > There are editors, such as PFE32, which can auto-detect a Unix/Windows text > > > file. Luke also told me that NotePad can do this, although NotePad has some > > > nasty size limitations. > > > > ah. wordpad, not notepad. > > > > > Also a nice shareware editor called TextPad is really worth looking at. > In addition to > automatically detect both DOS and UNIX file formats it has some nice > features,> You can download a fully functional version, without to much nagging > from > http://www.textpad.comthanks, eigil. ... now would be a good time to mention that no, it would not be a good feature to put automatic cr/lf conversion into samba. a #ifdef compile-time option, maybe... luke <a href="mailto:lkcl@switchboard.net" > Luke Kenneth Casson Leighton </a> <a href="http://mailhost.cb1.com/~lkcl"> Samba Consultancy and Support </a>
> > What config data in needed in the smb.conf file so that persons > on NT4.0 and Win95 can connect without specifying a usersname > and password.This would be a compile time option and not an smb.conf parameter. See the GUESTSETUP ( or somethingsimiliar ) define in local.h. The default is defined as 0 ( i think ) you will want to set it to either 1 or 2 ( or is that 2 or 3 ). I am not at my workstation right now but it is pretty obvious in the source. j- ________________________________________________________________________ Gerald ( Jerry ) Carter Engineering Network Services Auburn University jerry@eng.auburn.edu http://www.eng.auburn.edu/users/cartegw "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 )