From owner-freebsd-questions Wed Jan 2 15:40:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 163AA37B417 for ; Wed, 2 Jan 2002 15:40:09 -0800 (PST) Received: from [212.238.194.207] (helo=tanya.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16LuzP-000486-00 for freebsd-questions@freebsd.org; Wed, 02 Jan 2002 23:40:07 +0000 Received: by tanya.raggedclown.net (Postfix on SuSE Linux 7.3 (i386), from userid 500) id 775B91134; Thu, 3 Jan 2002 00:40:06 +0100 (CET) Date: Thu, 3 Jan 2002 00:40:06 +0100 From: Cliff Sarginson To: freebsd-questions@freebsd.org Subject: Re: SMBFS Unix to Windows End of Line Problem Message-ID: <20020102234006.GA13841@raggedclown.net> References: <3C338EC8.D20C9A67@unisys.com> <3C33904B.1029227@T-Online.DE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C33904B.1029227@T-Online.DE> User-Agent: Mutt/1.3.24i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Doug Fee wrote: > > > > SMBFS works great, however, I do have a problem which I cannot figure > > out how to get around. Text files in Unix terminates the line with just > > a linefeed whereas in Windows it terminates with a carriage return and > > linefeed. So when I save a text file to a SMB share and my coworker > > looks at it with his Windows box, he sees one long record. Is there a > > way to get the carriage return in and out of the file depending on where > > it is read/written to? > > > > Any advise would be greatly appreciated. > > Is this really true ? I am just about to embark climbimg Mount Samba and I am somewhat alarmed to hear this. Long ago the OSI model contained a layer, called the presentation layer that was supposed to deal with things like this I believe. Also whatevr happened to net-ascii then, isn't it supposed to be the level at which this is sorted out ? I expect if I look at a text file for it's appearance to be independent of it's origin. Surely something wrong here ? I don't know if FBSD supports "appatalk" or whatever it is called, the thing that supports MAC's, does that mean line-ends will be seen as a only if it does ? I haven't bought my "Samba in 24 hours" book yet, so perhaps that will explain it all. -- Regards Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message