DOS and UNIX formats on samba drives

Francois Gouget fgouget at free.fr
Wed Mar 21 18:22:39 GMT 2001


On Wed, 21 Mar 2001, Hauf Jochen wrote:
[...]
> The result was following :
> in DOS I got :   text " hex 0A" text       like I wrote it before 
> reading the same identical file from UNIX I got   :     text   " hex 0D"  "
> hex 0A" text 
> 
> So my question is : How is that possible , I thpought  i am reading the same
> file ?????

   This is not related to Samba. Anyway check out O_BINARY and O_TEXT
wrt open in Visual C++, this will solve your issues.
   Similarly check out "b" and "t" for fopen.


--
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                              145 = 1! + 4! + 5!





More information about the samba-technical mailing list