[Samba] LF vs CRLF (Was: Mapping a network drive to a WindowsDrive Letter)

Lamar.Saxon at americredit.com Lamar.Saxon at americredit.com
Thu Jan 18 13:27:10 GMT 2007


You also have the option of using GVIM/VIM instead of Windows editors.
VIM can determine this information.

www.vim.org

Lamar

-----Original Message-----
From: Daniel Eischen [mailto:eischen at vigrid.com]
Sent: Wednesday, January 17, 2007 5:53 AM
To: Wolfgang Ratzka
Cc: Samba at lists.samba.org
Subject: Re: [Samba] LF vs CRLF (Was: Mapping a network drive to a
WindowsDrive Letter)

On Wed, 17 Jan 2007, Wolfgang Ratzka wrote:

> stuart.jamieson at dstintl.com schrieb:
>
>> We have this working.
>>
>> however
>>
>> Some developers edit files using "windows editors"  and when they
then copy
>> them to the  Windows Drive Letter  which is mapped to a Unix machine,
the
>> resultant file  is full of  ^M  characters..... build breaks..... and
so on
>>
>> Until now we have been telling users to run "dos2unix"  beforehand,
but
>> somebody told me  that "Samba"  can handle this if properly
configured ?
>>
>> Is this possible ?    If so can somebody please help me  ?
>
> This cannot be done. Samba would need to decide for every file whether
it
> is DOS text, that needs to be recoded, or a binary file, which must
not be
> touched.

Do you use a source code management tool like CVS for your files?
We use CVS and have configured it to check for DOS files (and other
things) upon commit.  In our case we've set it up to disallow the
commit and force the developer to fix the problem(s).  If you are
using an SCM tool, perhaps you could get it to do something similar
or even automatically do the conversion for you.

--
DE



Privileged and Confidential.  This e-mail, and any attachments there to, is intended only for use by the addressee(s) named herein and may contain privileged or confidential information.  If you have received this e-mail in error, please notify me immediately by a return e-mail and delete this e-mail.  You are hereby notified that any dissemination, distribution or copying of this e-mail and/or any attachments thereto, is strictly prohibited.


More information about the samba mailing list